Wednesday, 3 August 2011

Microsoft .Net Interview Questions

1) State and explain about Microsoft.net?
.Net framework from Microsoft revolutionized the concept of programming. It contains a huge library of pre-coded solutions. It is specifically designed to manage programs written for it and it is considered very efficient tool for windows applications. It covers from the areas of database connectivity and access, web application, cryptography, etc.

2) Explain about CLR?
Security, memory management and exception handling is provided by CLR. It also provides application virtual machine which is chiefly responsible for taking care of the CPU performance so that programmers can code without any hassles.

3) Explain about the base class library provided by Microsoft.NET?
Base class library rightfully shares a profit for the popularity of Microsoft.NET. It provides functionality to all languages using .NET framework. It is a part of the Frame work class library. It provides classes which perform many functions such as file reading, graphic rendering, XML document manipulation and database interaction.

4) Explain about Common language infrastructure?
Main functionality and core aspect of Microsoft.NET lies with the efficient functioning of CLI. Implementation part of the CLI is called as the CLR. It has four primary parts they are
• Common type system
• Common language specification
• Metadata
• Virtual execution systems
It provides language agnostic platform and also takes care of security features.

5) Explain about metadata?
Metadata is usually created by compilers but it can also be generated by the developers through custom attributes. It is used for reflective programming capabilities and it contains information about the assembly. CIL is self describing through Meta data.

6) Explain about appdomains?
This appdomains mechanism isolates code during process running. It has flexible options in which you can state whether you want the code to be loaded during the process or not. Security aspects can also be directed towards appdomains. Primary role is to separate unsafe code from execution.

7) Explain about Validation?
Validation is an important test performed by CLR. This checks whether the assembly has valid metadata and CIL. It also checks whether internal tables are correct or not. Sometimes validation over performs because of which safe code also doesn’t get executed. Skip verification is a mechanism which skips verification.

8) Explain about code access security?
Code access security is used to check for permissions. If an assembly is not having required permission it stops the assembly from getting executed. It uses various procedures to determine whether a certain assembly has permissions or not. Security exception is thrown where there is lack of permission.

9) Explain about developer benefit from memory management?
Developers benefit immensely from the memory management by using Microsoft.NET. CLR does most of the memory management. An object remains in the reference whenever there is in use by CLR if it skips itself from the pool then it is called as garbage but it still gets to retain the memory allocated.

10) Explain about .NET Garbage collector?
Memory management still continues even when the object is in Garbage collector. GC deletes files only when there is need for memory or the pressure for the memory increases. GC cannot be determined it acts according to a predefined algorithm.

11) Explain the process of GC?
During the process of GC execution all process are stopped and it recursively enumerates objects reached by it and marks them for garbage collection. It uses metadata and reflection to detect whether the marked files are garbage or not. If they are garbage it takes necessary steps to delete them.

12) Explain about generation?
Garbage collectors or GC is the main feature present in .NET FRAMEWORK and these are generational. Objects which are created newly belong to generation 0. Objects surviving the garbage collection are named as generation 1. Objects which survive one more garbage collection are known to be generation 2. Older objects or generations are not collected to wipe out only newer objects are collected for a wipe out.

13) Explain about WPF?
Windows presentation foundation was formerly called as Avalon. This has a new interface subsystem and API based on vector graphics and XML. 3D computer graphics and Direct3D technologies are used in WPF.

14) State the different levels of exceptional safety?
There are various levels of exceptional safety such as
1) Failure transparency
2) Roll back semantics
3) Basic exception safety
4) Minimal exception safety
5) No exception safety

15) Explain about continuable exceptions?
Continuable exception is also called as resumption model of exception handling. After taking a corrective correction to the exception generated it is permitted to return to the expression which initiated the exception. In case of a non serious condition it is possible for it to return to the middle of the signaling expression and condition handler.

16) Explain some of the disadvantages due to Microsoft.NET?
Some of the disadvantages of Microsoft famous .NET framework is as follows: -
1) Applications tend to use much of the system resources and especially those which are running on Microsoft framework.
2) Loss of trade secrets and by passing of license is the major problem caused by reverse engineering.
3) Regular garbage check and collection makes the application pause for sometime from execution.
4) It is not installed on older versions which makes a developer imperative to create an application which checks whether the system has it installed or not.
5) Installation is not predefined it should be done manually.

17) Name some changes done since version 3.0?
Some of the features which were changed since version 3 are as follows.
1) New language features in C# and VB.NET compiler
2) Expression trees which can represent high level code at any time
3) LINQ along with its providers
i) LINQ to object
ii) LINQ to xml
iii) LINQ to sql
4) ASP.NET Ajax is included
5) Peer to peer network stack

0 comments:

Post a Comment

Popular Posts

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls