Interview questions

.NET frequently asked questions

Explain the elements of the .NET Framework.

CLR (Common Language Runtime): It is a common managed environment where all the .net programs run.........

What is assembly manifest? What is the information it provides?

Assembly Manifest is a file that contains data that describes how the elements present inside an assembly are connected to each other.........

Explain how a .NET application is compiled and executed.

Any code written in any .NET complaint languages when compiled, converts into MSIL (Microsoft Intermediate Language) code........

Describe the .NET base class library.

.NET’s Base class library exists in order to encapsulate huge number of common functions and makes them easily accessible to the developer.........

Explain the difference between value types and reference types

Stores the data, The value of value types is stored on the managed stack..........

Explain the importance of Imports and Using Statements.

Import statement: creates a property on the global object with the name supplied as namespace........

Explain the difference between a class and a structure.

It is reference type, Null value can be assigned to a variable in a class........

Explain how garbage collection manages the reclamation of unused memory.

The garbage collector assumes that all objects in the managed heap are garbage.........

Explain how garbage collection deals with circular references.

The .Net runtime knows about all the references between the objects.........

Explain the process of creating a menu using the MainMenu component.

MainMenu component is a component that allows the display of Menus at runtime on a form.........

Explain the process of creating a context menu using the ContextMenu component.

ContextMenu component provides the users with the ability to access some very frequently used commands.........

What is a delegate? Explain how to create it.

A delegate declares a ref type that references a named of anonymous method. Delegates are secure and type-safe.........

Explain how to declare and raise events from your application.

Declare Events: “Event” keyword is used to declare an event.........

Describe how to implement event handlers and associate them with events.
What is Break Mode? How to set breakpoints?

Break mode is the state of an application when the execution gets paused and allows........

Describe how to step through code in .NET.

Steps to step through the code in .NET:........

Describe the debugging windows available in .NET.

Breakpoints: displays a list of all the breakpoints and where they are.........

What are Debug and Trace classes? Explain how to use them to display error classes.

Both are used to help programmers find errors, occurring events and flow of code.........

Describe how to create Trace Listeners and log Trace output.
What are Trace switches? Describe how to create and use Trace switches.

Trace switches allow us to filter, enable/disable the outputs through Trace. We can configure them through the config file. 3 types of trace switches:........

Explain how to configure Trace switches in the application’s .config file.

switches are configured using the .config file........

Explain how exceptions are handled by the common language runtime in .NET.

The CLR uses a technique generally referred to as a two-pass exception review process.........

Describe the different types of user-authored controls in NET.

User authored controls are which not part of the .net framework library. It includes both custom controls and user controls.........

Explain with code sample how to create an inherited control.

Steps to create inherited Control:-........

Explain with code sample how to create a user control.

Steps to create a User control:........

Explain with code sample how to create a custom control.

Steps to create a custom control:........

Describe the .NET Framework architecture.

.Net framework has two components:........

What is the managed execution process?

Managed execution process is a process where CLR executes the managed code. The steps involved in this process are:........

What are assemblies? Describe the types of assemblies.

Assembly is a compiled output of program which are used for easy deployment of an application.........

Explain the role of assemblies in .NET.

Assemblies are main building blocks. An assembly maybe defined as a unit of deployment.........

What are windows services? How are they differ from other .NET application?

Windows services are a way to create continuously running applications in the background.........

Why are Windows Services needed?

a. Running services in background like antivirus
b. Disk or memory access monitoring
c. To implement security systems for an application..............

Implementing a Simple Windows Service Application in .NET 

a. Create a window service project.
b. Service file appears with a constructor and OnStart and OnStop methods.................  



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring