Software job search
.net sql interview questions
  The best place for technical interview questions

 
Home.netSql serverAsp.netC#Vb.netAdo.netAjaxMcpd dumpsWord count tool
Vb.net interview questions
 
Question 1   What is il

In .net “intermediate language” is known as il. it is also known as “microsoft intermediate language” (msil) or “common intermediate language” (cil). .net compiler coverts the source code into il during compilation. just-in-time (jit) compiler converts this il to machine code during run time or at the time of installation.



Question 2   What is a clr

Clr is known as common language runtime which is an implementation of cli. in .net framework clr is responsible for executing applications which includes pre-emptive threading, debugging, code access security etc. it is also known as execution engine of .net framework




Question 3   What are the responsibilities of clr

The some of the major responsibilities of clr are described below.

1) code access security (cas) –cas is the security model in .net which ensures whether a piece of code has the right permissions to access a resource or not. cas prevents the execution of an untrusted code in a .net environment

2) garbage collection - garbage collector in clr performs the duty of memory manager. the basic functionalities of a garbage collector includes allocation of memory, reclaiming memory of objects which are not in use etc.

3) code safety/verification. type safety and code verification are the other responsibilities of clr

4) just in time compiler (jit)- clr uses just in time compiler to convert msil to machine language and executes it



Question 4   What is managed code

Managed code - any piece of code that can be directly executed by the common language runtime (clr) in a .net environment is known as managed code. when a .net program is compiled it is not directly converted to machine code, it is converted msil (microsoft intermediate language) and clr uses this msil to execute the program which is known as managed code

unmanaged code – programs or dll’s written in other languages (like c, c++) are directly executed by the cpu directly. these are known as unmanaged code because the clr doesn’t have any control over the execution of such codes



Question 5   What is the difference between managed and unmanaged code in .net?

Managed code - any piece of code that can be directly executed by the common language runtime (clr) in a .net environment is known as managed code. when a .net program is compiled it is not directly converted to machine code, it is converted msil (microsoft intermediate language) and clr uses this msil to execute the program which is known as managed code. a managed code contains all the necessary metadata to clr to enable services like code access security, memory management etc.


unmanaged code – programs or dll’s written in other languages (like c, c++) are directly executed by the cpu directly. these are known as unmanaged code because the clr doesn’t have any control over the execution of such codes.



Question 6   Describe the difference between a thread and a process

A process is an image of a program which is being executed in the system memory. a program may contain multiple processes. a process may contain at least one or more threads. threads are the smallest unit of execution in a process. multiple threads which are executed in a process can access the process global variables and resources




 Rate this page
     
 35 votes , average 2 out of 5
1 2 3 4 5 6 7 

Reader's opinions -

No comments
Loading

 
.net interview questions
Asp.net interview questions
C# interview questions
Vb.net interview questions
Ado.net interview questions
Ajax interview questions
Wcf interview questions
Wpf interview questions
.net threading interview questions
.net remoting and webservices interview questions
.net caching interview questions
.net oops interview questions
Sharepoint interview questions
Jquery interview questions
Silverlight interview questions
Linq interview questions
Wwf interview questions
Java interview questions
Sql server interview questions
Ssis interview questions
Ssrs interview questions
Data warehousing interview questions
Data mining interview questions
Oracle interview questions
Php interview questions
Design patterns interview questions
Uml interview questions
Mcpd dumps
Pmp practice tests

This site is best viewed with Internet Explorer 7.0 or higher, Firefox 2.0 or higher, Chrome at a minimum screen resolution of 1024x768.
A complete solution to interview questions
free matrimonial website      
web hosting plans |  compare vps hosting plans |  Compare dedicated hosting plans |  Compare linux hosting plans |  Compare cloud hosting plans |  Compare windows hosting plans | 
Hosting reviews |  GoDaddy reviews | 
Support Wikipedia