When we are talking about interview question of asp .net at that time the .Net framework take important place in it , so i am going to share some .Net framework questions with you . In below questions some are from my personal collection and some are reference from other e- books .Their are around 21 questions about .Net framework , Some people ask me that the .net framework question is really matter in Asp .Net question ? 😎
Yes , as per my knowledge and research the .Net Framework questions are always consider in priority . So please do it needfully for crack your interview , Best of luck guys , I hope you will get something from it 😎.
1) What is a IL or MSIL or CIL , and JIT ?
(IL)Intermediate Language is also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code is compiled to IL. This 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.
2) What is a CLR?
Full form of CLR is Common Language Runtime and it forms the heart of the .NET framework. All Languages have runtime and its the responsibility of the runtime to take care of the code execution of the program. For example VC++ has MSCRT40.DLL,VB6 has MSVBVM60.DLL, Java has Java Virtual Machine etc.
3) What is Garbage Collection ?
Answer : CLR automatically manages memory thus eliminating memory leaks. When objects are not referred GC automatically releases those memories thus providing efficient memory management.
4) What is CTS ?
In order that two language communicate smoothly CLR has CTS (Common Type System).Example in VB you have “Integer” and in C++ you have “long” these datatypes are not compatible so the interfacing between them is very complicated.
5) What is a Managed Code?
Managed code runs inside the environment of CLR i.e. .NET runtime. In short all IL are managed code.
6) What is a Assembly?
An assembly consists of one or more files (dlls, exe’s, html files etc.), and represents a group of resources, type definitions, and implementations of those types.
Example : Assembly is unit of deployment like EXE or a DLL.
An assembly is completely self-describing.An assembly contains metadata information, which is used by the CLR for everything from type checking and security to actually invoking the components methods.
7 ) What are the different types of Assembly?
There are two types of assembly Private and Public assembly.
- A private assembly is normally used by a single application, and is stored in the application’s directory, or a sub-directory beneath.
- A shared assembly is normally stored in the global assembly cache, which is a repository of assemblies maintained by the .NET runtime.
8 ) What is NameSpace?
NameSpace Logically group types, example System.Web.UI logically groups our UI related features.In Object Oriented world many times its possible that programmers will use the same class name.By qualifying NameSpace with classname this collision is able to be removed.
9) What is Difference between NameSpace and Assembly?
- Assembly is physical grouping of logical units. Namespace logically groups classes.
- Namespace can span multiple assembly.
10) What is Manifest?
Assembly metadata is stored in Manifest. Manifest contains all the metadata needed to do the following things.
- Version of assembly
- Security identity
- Scope of the assembly
- Resolve references to resources and classes.
Get Free Weekly Updates
Get Weekly Email on latest blogging Tips & news from Stackbuddy.