.Net Interview Questions
Dot Net Interview Questions
Dot Net Interview Questions for Freshers
What is .Net ?
.NET is a framework for software development. It provides runtime capabilities and a rich set of pre-built functionality in the form of class library and API's. .NET framework is an environment to build, deploy and run web services and other applications.
Mainly it contains three parts;
- Common Language Runtime
- Framework classes
- ASP.NET
How many languages are supported by .NET at present time? ?
When .NET was introduced first time, it supports many languages like VB.NET,C#,COBOL, and Perl etc. At present time it supports almost 44 languages.
How is it possible for .NET to support many languages ?
The .NET language code is compiled to Microsoft Intermediate Language (MSIL). The generated code is called managed code. This managed code is run in .NET environment. So after compilation the language is not a barrier and the code can call or use function of another language also.
What is an IL ?
IL stand for Intermediate Language and it is also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code is compiled to IL. IL is then converted to machine code at the point where the software is installed, or at run-time by a Just-In-Time (JIT) compiler.
What is Garbage collection ?
This feature is mainly used for memory management. Garbage collection is used to prevent memory leaks during execution of programs.
What is Code Access Security (CAS) in .NET framework ?
.NET security model is used to prevent unauthorized access of resources and operations and also restrict the codes to perform particular tasks. Code Access Security is a part of that .NET security.
What is manifest in .NET Framework ?
Manifest is used to store assembly metadata. It contains all the metadata which are necessary for following things.
- Version of assembly
- Security identity
- Scope of the assembly
- To resolve references to resources and classes
What are main components of .NET Framework ?
- Class library
- Common Language Runtime (CLR)
- Dynamic Language Runtime (DLR)
- Application Domains
- Runtime Hosts
- Cross-language interoperability
- Framework security
- Profiling etc.
What is the difference between trace and debug ?
Debug class is used to debug builds while Trace is used for both debug and release builds.
What is the state management in ASP.NET ?
State management is a technique that is used to manage a state of an object on different request. It is very important to manage state in any web application. There are two types of state management systems in ASP.NET..
- Client side state management
- Server side state management
How many languages are supported by .NET at present time ?
When .NET was introduced first time, it supports many languages like VB.NET,C#,COBOL, and Perl etc. At present time it supports almost 44 languages.
What is the difference between dispose() and finalize() ?
The Finalize() is called automatically by the runtime while the Dispose() is called by the programmer.
What is the full form of ADO ?
The full form of ADO is ActiveX Data Object.
What are the two fundamental objects in ADO.NET ?
DataReader and DataSet are the two fundamental objects in ADO.NET.
What is IIS? Why is it used ?
Internet Information Services (IIS) is created by Microsoft to provide Internet-based services to ASP.NET Web applications. It makes your computer to work as a Web server and provides the functionality to develop and deploy Web applications on the server.
What is Serialization ?
Serialization is the process of converting an object into a stream of bytes.
What is Deserialization ?
Deserialization is the opposite process, i.e. creating an object from a stream of bytes. Serialization/Deserialization is mostly used to transport objects (e.g. during remoting), or to persist objects (e.g. to a file or database)