.NET Framework Interview Questions and Answers (547) - Page 3

What is multi-threading?

It is basically trying to do more than one thing at a time within a process.

There are two main ways of multi-threading which .NET encourages: starting your own threads with ThreadStart delegates, and using the ThreadPool class either directly (using ThreadPool.QueueUserWorkItem) or indirectly using asynchronous methods (such as Stream.BeginRead, or calling BeginInvoke on any delegate).
Which namespace threading contains?

NOTE: This is objective type question, Please click question title for correct answer.
What is the diffeernce between Overload and Override?

Overload is the another version of the same function into the class. There can be different parameters, return type in overload functions (in brief: Same function and different parameters).

Override is entirely overriding the base class function and creating our own version in the child class. Base class and child class function name and return type should be same.
How many web.configs can an application have?

Moderated by Webmaster

Original answer:
There can only be 1 web.config in an application.

Corrected answer:
An application can have multiple web.config files but in different directories ... mean each and every directory can have a web.config file. For little more, visit http://www.dotnetfunda.com/questions/question137.aspx
Where do you store connection string?

Database connection string can be stored in the web config file.
What is abstract class

Abstract class cannot be instantiated instead it has to be inherited. The methods in abstract class can be overridetn in the child class
What are the collection classes?

The .NET Framework provides specialized classes for data storage and retrieval.
list the object-oriented concepts

Inheritance
Abstraction
Polymorphism
Encapsulation
What is difference between interface inhertance and class inheritance?

If its a interface inheritance and the inheritad class is not a abstact class or a interface class then all the methods in the supper class needs to be implemented.
Class inheritance no need such thing.
What are Abstract base classes?

Abstact Class is nothing but a true virtual class..
This class cannot be instantiated instead it has to be inherited.
The method in abstract class are virtual and hence they can be overriden in the child class.
When is web.config called?

Web.config is an xml configuration file. It is never directly called unless we need to retrieve a configurations setting.
What does connection string consist of?

Server, user id, password, database name.
What is a runtime host?

The runtime host is the environment in which the CLR is started and managed.
What inheritance does VB.NET support?

Single inheritance using classes or multiple inheritance using interfaces.
Differences between application and session ?

The application level variable hold value at the application level and their instances are destroyed when the no more client access that application, whereas session correspond to a individual user accessing the application.
What is web application virtual directory

Virtual directory is the physical location of the application on the machine.
By default it’s - inetpub/wwwroot
If cookies is disabled in client browser, will session tracking work?

No, maintaining value in cookie wont be possible. In that case you have to make use of other ways to maintain state of the data on page.
you can check whether client support cookies or not by using
Request.Browser.Cookies property.
What is a Process, Session and Cookie?

Process - Instance of the application
Session - Instance of the user accessing the application
Cookie - Used for storing small amount of data on client machine.
Explain serialization?

Serialization is a process of converting an object into a stream of bytes.
.Net has 2 serializers namely XMLSerializer and SOAP/BINARY Serializer.
Serialization is maily used in the concept of .Net Remoting.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories