CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.




Get it now !!
Send your Resume to 6000 Companies
DotNet Interview Questions & Answers - Learning Mode
COOLINTERVIEW.COM MICROSOFT INTERVIEW QUESTIONS DOTNET INTERVIEW QUESTIONS QUESTIONS & ANSWERS - LEARNING MODE

DotNet Interview Questions & Answers - Learning Mode

The .NET Framework is Microsoft's managed code programming model for building applications on Windows clients, servers, and mobile or embedded devices. Developers use .NET to build applications of many types: Web applications, server applications etc. .NET Framework (pronounced dot net) is a software framework developed by Microsoft that runs primarily on Microsoft Windows.

Try DotNet Interview Questions & Answers - Exam Mode

1 2 3 4 5 6 7 8 9 10 11 Next

Sort By : Latest First | Oldest First | By Rating

DotNet Interview Questions & Answers - Learning Mode
Try DotNet Interview Questions & Answers - Exam Mode
Question: Observations between VB.NET and VC#.NET

Answer: Choosing a programming language depends on your language experience and the scope of the application you are building. While small applications are often created using only one language, it is not uncommon to develop large applications using multiple languages.
For example, if you are extending an application with existing XML Web services, you might use a scripting language with little or no programming effort. For client-server applications, you would probably choose the single language you Source: CoolInterview.com
Question: What is CLR?

Answer: CLR is .NET equivalent of Java Virtual Machine (JVM). It is the runtime that converts a MSIL code into the host machine language code, which is then executed appropriately. The CLR is the execution engine for .NET Framework applications. It provides a number of services, including:
? Code management (loading and execution)
? Application memory isolation
? Verification of type safety
? Conversion of IL to native code.
? Access to metadata (enhanced type information)
? Managing Source: CoolInterview.com
Question: What is "Common Type System" (CTS)?

Answer: CTS defines all of the basic types that can be used in the .NET Framework and the operations performed on those type.
All this time we have been talking about language interoperability, and .NET Class Framework. None of this is possible without all the language sharing the same data types. What this means is that an int should mean the same in VB, VC++, C# and all other .NET compliant languages. This is achieved through introduction of Common Type System (CTS). Source: CoolInterview.com
Question: Which controls do not have events?

Answer: Timer control. Source: CoolInterview.com
Question: Advantages of VB.NET

Answer: 1. First of all, VB.NET provides managed code execution that runs under the Common Language Runtime (CLR), resulting in robust, stable and secure applications. All features of the .NET framework are readily available in VB.NET.
2. VB.NET is totally object oriented. This is a major addition that VB6 and other earlier releases didn't have.
3. The .NET framework comes with ADO.NET, which follows the disconnected paradigm, i.e. once the required records are fetched the connection no longer Source: CoolInterview.com
Question: What is cts and cls?


Answer: =>cls stands for common language specification where as
cts stands for common type system.
=>CLS : cls is a standard for .net . cls is small set of specification to make all languages as a .net compliant languages. cls make a use of cts and clr. if my languages (c#,vb.net,j#,vc++) wants to be compliant language it has to follow cls standard.

=>CTS : Common Type System is also a standard like cls. If two languages (c# or vb.net or j# or vc++) wants to communicate with eacho Source: CoolInterview.com
Question: What is the difference between ADO and ADO.NET?

Answer: ADO uses Recordsets and cursors to access and modify data. Because of its inherent design, Recordset can impact performance on the server side by tying up valuable resources. In addition, COM marshalling - an expensive data conversion process - is needed to transmit a Recordset. ADO.NET addresses three important needs that ADO doesn't address:
1. Providing a comprehensive disconnected data-access model, which is crucial to the Web environment
2. Providing tight integration with XML, an Source: CoolInterview.com
Question: What Is The Difference Between ViewState and SessionState



Answer: ViewState persist the values of controls of particular page in the client (browser) when post back operation done. When user requests another page previous page data no longer available.

SessionState persist the data of particular user in the server. This data available till user close the browser or session time completes.

Source: CoolInterview.com
Question: How u can create XML file?



Answer: To write Dataset Contents out to disk as an XML file use:

MyDataset.WriteXML(server.MapPath("MyXMLFile.xml"))
Source: CoolInterview.com
Question: How would one do a deep copy in .NET?

Answer: System.Array.CopyTo() - Deep copies an Array Source: CoolInterview.com
Question: What is a Strong Name?

Answer: A strong name consists of the assembly's identity — its simple text name, version number, and culture information (if provided) — plus a public key and a digital signature. It is generated from an assembly file (the file that contains the assembly manifest, which in turn contains the names and hashes of all the files that make
up the assembly), using the corresponding private key. Assemblies with the same strong name are expected to be identical.
Strong names guarantee name Source: CoolInterview.com
Question: What is the root class in .Net ?

Answer: Object Source: CoolInterview.com
Question: What is Web.config?

Answer: In classic ASP all Web site related information was stored in the metadata of IIS. This had the disadvantage that remote Web developers couldn't easily make Web-site configuration changes. For example, if you want to add a custom 404 error page, a setting needs to be made through the IIS admin tool, and you're Web host will likely
charge you a flat fee to do this for you. With ASP.NET, however, these settings are moved into an XML-formatted text file (Web.config) that resides in the W Source: CoolInterview.com
Question: Why is catch(Exception) almost always a bad idea?

Answer: Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project. Source: CoolInterview.com
Question: True or False: A Web service can only be written in .NET

Answer: False. Source: CoolInterview.com
Question: What is the difference between VB and VB.NET?

Answer: What is the difference between VB and VB.NET?
Now VB.NET is object-oriented language. The following are some of the differences:
Data Type Changes
The .NET platform provides Common Type System to all the supported languages. This means that all the languages must support the same data types as enforced by common language runtime. This eliminates data type incompatibilities between various languages. For example on the 32-bit Windows platform, the integer data type takes 4 bytes in lan Source: CoolInterview.com
Question: What is strong-typing versus weak-typing? Which is preferred? Why?

Answer: Strong type is checking the types of variables as soon as possible, usually at compile time. While weak typing is delaying checking the types of the system as late as possible, usually to run-time. Which is preferred depends on what you want. For scripts & quick stuff you?ll usually want weak typing, because you want to write as much less (is this a correct way to use Ensligh?) code as possible. In big programs, strong typing can reduce errors at compile time. Source: CoolInterview.com
Question: How do you turn off cookies for one page in your site?

Answer: Use the Cookie.Discard Property which Gets or sets the discard flag set by the server. When true, thisproperty instructs the client application not to save the Cookie on the user?s hard disk when a session ends.

Or

it can be turned off by mentioning cookie state= false in web.config file Source: CoolInterview.com
Question: What is the difference between a.Equals(b) and a == b?

Answer: a=b is used for assigning the values (rather then comparison) and a==b is for comparison.

Or
a == b is used to compare the references of two objects
a.Equals(b) is used to compare two objects
Or

a equals b -> copies contents of b to a
a == b -> checks if a is equal to b
Source: CoolInterview.com
Question: Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?

Answer: ComboBox.DataValueField = "ColumnName"

When we use Databind method for the Combobox we set DisplayMember and DIsplayValue property to column name. Source: CoolInterview.com

1 2 3 4 5 6 7 8 9 10 11 Next



India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.015625 Seconds