.Net Framework Interview Questions and Answers

    109 Votes

25) What are Value types and Reference types ?

There are two types of data types in .Net, Value types and Reference types. Value types are stored in stack part of the memory. Reference type are stored in managed heap. Let have a look at the example for better understanding.
Int iCount = 0; \\ Value Type
int NewiCount =  iCount; \\  Reference Type

26) Explain the concept of Boxing and Unboxing ?

Converting a value type to reference type is called Boxing. Converting a reference type to value type is called Unboxing.

27) What’s the difference between System exceptions and Application exceptions?

System exceptions are common exceptions thrown by the CLR of .Net Framework. Application exceptions can be user defined exceptions thrown by the application.

28) What is CODE Access security?

CODE Access security is a security model that let us grant or deny execution permissions to an assembly according to its "properties," called evidence, such as its strong name or publisher


29) What is a satellite assembly?

A satellite assembly are used when multilingual (UI) application are created. Satellite assembly is a compiled library that contains localized resources  which provides us with the capability of designing and deploying solutions to multiple cultures, rather than hard coding texts, bitmaps etc


30) How to prevent my .NET DLL to be decompiled ?

We can prevent .NET DLL to be decompiled upto an extent by Obfuscate Source code, asymmetric encryption and encrypted w32 wrapper application.


31) What is Native Image Generator (Ngen.exe) ?

Ngen.exe creates compiled processor-specific machine code called native images which are files and installs them into the native image cache on the local computer. The runtime will use native images from the cache rather than using the JIT compiler to compile the original assembly.


32) What is Code Document Object Model (CodeDom) ?

Code Document Object Model are code generators which are used  to minimize repetitive coding tasks, and to minimize the number of human-generated source code lines.

Page 4 of 4

Popular Videos

communication

How to improve your Interview, Salary Negotiation, Communication & Presentation Skills.

Got a tip or Question?
Let us know

Related Articles

C# Interview Questions
ADO.Net Interview Questions and Answers for Freshers, Experienced
ASP.Net Interview Questions and Answers
ASP.Net MVC Interview questions and Answers
WCF Interview Questions and Answers
ASP.Net Web API Interview Questions
Top 50 Entity framework interview questions & answers