Net Interview Questions And Answers

Net interview questions and answers on advance and basic Net with example so this page for both freshers and experienced condidate. Fill the form below we will send the all interview questions on Net also add your Questions if any you have to ask and for apply in Net Tutorials and Training course just send a mail on in detail about your self.

Top Net interview questions and answers for freshers and experienced

What is Net ?

Answer : The .NET framework is a software framework designed mainly for the Microsoft Windows operating system. It includes an implementation of the Base Class Library, Common Language Runtime (commonly referred to as CLR) and Dynamic Language Runtime. It supports many programming languages, including C#, VB.NET, F# and C++/CL

Questions : 1 :: What is .NET Framework?

.NET Framework is a complete environment that allows developers to develop, run, and deploy the following applications: Console applications Windows Forms applications Windows Presentation...View answers

Questions : 2 :: What are the main components of .NET Framework?

.NET Framework provides enormous advantages to software developers in comparison to the advantages provided by other platforms. Microsoft has united various modern as well as existing technologies of...View answers

Questions : 3 :: List the new features added in .NET Framework 4.0.

The following are the new features of .NET Framework 4.0: Improved Application Compatibility and Deployment Support Dynamic Language Runtime Managed Extensibility Framework Parallel Programming...View answers

Questions : 4 :: What is an IL?

Intermediate Language 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...View answers

Questions : 5 :: What are code contracts?

Code contracts help you to express the code assumptions and statements stating the behavior of your code in a language-neutral way. The contracts are included in the form of pre-conditions,...View answers

Questions : 6 :: Name the classes that are introduced in the System.Numerics namespace.

The following two new classes are introduced in the System.Numerics namespace: BigInteger - Refers to a non-primitive integral type, which is used to hold a value of any size. It has no lower and...View answers

Questions : 7 :: What is managed extensibility framework?

Managed extensibility framework (MEF) is a new library that is introduced as a part of .NET 4.0 and Silverlight 4. It helps in extending your application by providing greater reuse of applications...View answers

Questions : 8 :: Explain memory-mapped files.

Memory-mapped files (MMFs) allow you map the content of a file to the logical address of an application. These files enable the multiple processes running on the same machine to share data with each...View answers

Questions : 9 :: What is Common Type System (CTS)?

CTS is the component of CLR through which .NET Framework provides support for multiple languages because it contains a type system that is common across all the languages. Two CTS-compliant languages...View answers

Questions : 10 :: Give a brief introduction on side-by-side execution. Can two applications, one using private assembly and the other using the shared assembly be stated as side-by-side executables?

Side-by-side execution enables you to run multiple versions of an application or component and CLR on the same computer at the same time. As versioning is applicable only to shared assemblies and not...View answers

Questions : 11 :: State the differences between the Dispose() and Finalize().

CLR uses the Dispose and Finalize methods to perform garbage collection of run-time objects of .NET applications. The Finalize method is called automatically by the runtime. CLR has a garbage...View answers

Questions : 12 :: What is code access security (CAS)?

Code access security (CAS) is part of the .NET security model that prevents unauthorized access of resources and operations, and restricts the code to perform particular tasks.

Questions : 13 :: Differentiate between managed and unmanaged code?

Managed code is the code that is executed directly by the CLR instead of the operating system. The code compiler first compiles the managed code to intermediate language (IL) code, also called as...View answers

Questions : 14 :: What are tuples?

Tuple is a fixed-size collection that can have elements of either same or different data types. Similar to arrays, a user must have to specify the size of a tuple at the time of declaration. Tuples...View answers

Questions : 15 :: How can you turn-on and turn-off CAS?

YOU can use the Code Access Security Tool (Caspol.exe) to turn security on and off. To turn off security, type the following command at the command prompt: caspol -security off To turn on...View answers

Questions : 16 :: What is garbage collection? Explain the difference between garbage collections in .NET 4.0 and earlier versions.?

Garbage collection prevents memory leaks during execution of programs. Garbage collector is a low-priority process that manages the allocation and deallocation of memory for your application. It...View answers

Questions : 17 :: How does CAS works?

There are two key concepts of CAS security policy- code groups and permissions. A code group contains assemblies in it in a manner that each .NET assembly is related to a particular code group and...View answers

Questions : 18 :: Mention the execution process for managed code.

piece of managed code is executed as follows: Choosing a language compiler Compiling the code to MSIL Compiling MSIL to native code Executing the...View answers

Questions : 19 :: Is there a way to suppress the finalize process inside the garbage collector forcibly in .NET?

Use the GC.SuppressFinalize() method to suppress the finalize process inside the garbage collector forcibly in .NET.

Questions : 20 :: How can you instantiate a tuple?

The following are two ways to instantiate a tuple: Using the new operator. For example, Tuple<String, int> t = new Tuple<String, int> ("Hellow", 2); Using the Create factory...View answers

Questions : 21 :: Which is the root namespace for fundamental types in .NET Framework?

System.Object is the root namespace for fundamental types in .NET Framework.

Questions : 22 :: What are the improvements made in CAS in .NET 4.0?

The CAS mechanism in .NET is used to control and configure the ability of managed code. Earlier, as this policy was applicable for only native applications, the security guarantee was limited....View answers

Questions : 23 :: What is Microsoft Intermediate Language (MSIL)?

The .NET Framework is shipped with compilers of all .NET programming languages to develop programs. There are separate compilers for the Visual Basic, C#, and Visual C++ programming languages in .NET...View answers

Questions : 24 :: What is lazy initialization?

Lazy initialization is a process by which an object is not initialized until it is first called in your code. The .NET 4.0 introduces a new wrapper class, System.Lazy<T>, for executing the lazy...View answers

Questions : 25 :: How many types of generations are there in a garbage collector?

Memory management in the CLR is divided into three generations that are build up by grouping memory segments. Generations enhance the garbage collection performance. The following are the three types...View answers

Questions : 26 :: Explain covariance and contra-variance in .NET Framework 4.0. Give an example for each.

In .NET 4.0, the CLR supports covariance and contravariance of types in generic interfaces and delegates. Covariance enables you to cast a generic type to its base types, that is, you can assign a...View answers

Questions : 27 :: How do you instantiate a complex number?

The following are the different ways to assign a value to a complex number: By passing two Double values to its constructor. The first value represents the real, and the second value represents...View answers

Questions : 28 :: What is Common Language Specification (CLS)?

CLS is a set of basic rules, which must be followed by each .NET language to be a .NET- compliant language. It enables interoperability between two .NET-compliant languages. CLS is a subset of CTS;...View answers

Questions : 29 :: What is the role of the JIT compiler in .NET Framework?

The JIT compiler is an important element of CLR, which loads MSIL on target machines for execution. The MSIL is stored in .NET assemblies after the developer has compiled the code written in any...View answers

Questions : 30 :: What is difference between System.String and System.StringBuilder classes?

String and StringBuilder classes are used to store string values but the difference in them is that String is immutable (read only) by nature, because a value once assigned to a String object cannot...View answers

Questions : 31 :: Describe the roles of CLR in .NET Framework.?

CLR provides an environment to execute .NET applications on target machines. CLR is also a common runtime environment for all .NET code irrespective of their programming language, as the compilers of...View answers

Questions : 32 :: Describe the programming model of a windows service.

Windows services are based on the class that is inherited from System.ServiceProcess.ServiceBase class. Methods from this class are overridden to provide the functionality as per the user’s...View answers

Questions : 33 :: Explain the states of a window service application?

a. Running: Normal operation occurs during this stage. b. Paused: The service cannot perform anything beyond till the paused state is changed. c. Stopped: The application based on this service will...View answers

Questions : 34 :: Explain how COM+ related to the DNA architecture.?

COM+ is the core service in all the services of window DNA architecture. COM+ allows various components of window DNA t work together to form a robust, and an efficient application. It is considered...View answers

Questions : 35 :: Describe the use of following COM+ services JIT Activation, Queued components, object pooling.?

  COM+ services: a. JIT Activation: In this case, an object gets activated on calling a method and it gets deactivated when the call returns back. b. Queued components: provides a way to...View answers

Questions : 36 :: What is a Serviced component?

A serviced component is a class that is inside all the CLS-complaint languages. It derives directly or indirectly from the System.EnterpriseServices.ServicedComponent class. This way of configuring...View answers

Questions : 37 :: Explain how to load the contents of an XML file into an XMLDocument object?

XmlDocument doc=new XmlDocument(); Doc.Loadxml(@“c:abc.xml”);

Questions : 38 :: Which two properties are on every valida tion control?

Questions : 39 :: How to load a user control dynamically in runtime?

Control c =...View answers

Questions : 40 :: What's a bubbled event?

When  you  have  a  complex  control,  like  DataGrid,  writing  an  event  processing  routine  for  each  object...View answers

Questions : 41 :: What is different between WebUserControl and in WebCustomControl?

Web user controls:-Web User Control is Easier to create and another thing is that its support is limited for users who use a visual design tool one good thing is that its contains static layout one...View answers

Questions : 42 :: What is smart navigation?

 Enable    smart    navigation    by    using    the    Page.SmartNavigation   ...View answers
More Question

Ask your interview questions on Net

Write Your comment or Questions if you want the answers on Net from Net Experts
Name* :
Email Id* :
Mob no* :
Comment* :


--------- Tutorials ---