ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net Framework
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
What is the difference between managed and unmanaged code?
 Question Submitted By :: Siddharth
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between managed and unmanaged code?
Answer
# 1
Code that is executed by the CLR. Managed code provides 
information (i.e., metadata) to allow the CLR to locate 
methods encoded in assembly modules, store and retrieve 
security information, handle exceptions, and walk the 
program stack. Managed code can access both managed data 
and unmanaged data. Managed data—Memory that is allocated 
and released by the CLR using Garbage Collection. Managed 
data can only be accessed by managed code


2.Code that targets the common language runtime, the 
foundation of the .NET Framework, is known as managed code; 
code that does not target the common language runtime is 
known as unmanaged code. You can think of the runtime as an 
agent that manages code at execution time, providing core 
services such as memory management, thread management, and 
remoting, while also enforcing strict type safety in the 
code. The concept of code management is a fundamental 
principle of the runtime. 

3.Managed code supplies the metadata necessary for the CLR 
to provide services such as memory management, cross-
language integration, code access security, and automatic 
lifetime control of objects. All code based on IL executes 
as managed code. 

4.Code that executes under the CLI execution environment. 
Managed code uses the execution environment for memory 
management, object lifetime, and the basic type-system, 
among other fundamental services.
 
Is This Answer Correct ?    7 Yes 0 No
Charles
 
  Re: What is the difference between managed and unmanaged code?
Answer
# 2
A code that executed under the instructions of CLR is called
managed code.
A code that execute without the instruction of CLR is called
unmanaged code.
 
Is This Answer Correct ?    12 Yes 0 No
Uppalashiva
[Inteq Solution Pvt. Ltd]
 
 
 
  Re: What is the difference between managed and unmanaged code?
Answer
# 3
A code which is understandable by CLR is called managed code
A code which is not understandable by CLR is called
unmanaged code
 
Is This Answer Correct ?    10 Yes 0 No
Uppalashiva
[Inteq Solution Pvt. Ltd]
 
  Re: What is the difference between managed and unmanaged code?
Answer
# 4
Managed code are execute by CLR,
Unmanaged code are use wrapper class,
 
Is This Answer Correct ?    0 Yes 4 No
Prabhat
 
  Re: What is the difference between managed and unmanaged code?
Answer
# 5
Program written in any .net compatible language will go for
compilation for 2times.
In the first compilation of the program, the language
compiler will generate MSIL code which is the managed code. & 

the code generated after the second execution ie by the CLR
is called unmanaged code which is machine understandable and
not by the user.
 
Is This Answer Correct ?    2 Yes 7 No
Anil
 

 
 
 
Other Dot Net Framework Interview Questions
 
  Question Asked @ Answers
 
js fn to go to the particular page when enter is clicked  1
About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use ? MMTS2
Which is the best institute in chennai to learn DotNet?  6
Can you handle all button click events at once in a form? Give coding. Kanbay1
what are background threads? give ex? Kanbay3
What is side by side Execution ? MMTS3
Httpcontext objects? HP2
What is .NET Framework?  3
What is the common property in .net? Nth-Solution1
If background completes its processing will it wait for foreground threads? Kanbay1
about triggers? CSC1
What is serialization in .NET? What are the ways to control serialization?  2
What is reflection? Merrill-Lynch3
What is strong name and which tool is used for this ? Accenture3
How do you sort a dataset?  2
what is the diff b/w asp.net 2.0 & 3.5  2
How do you register the dotnet component or assembly ? Accenture1
What is shared and private assembly ? Accenture2
What does assemblyinfo.cs file consists of ? Accenture1
About namespaces ? MMTS2
 
For more Dot Net Framework Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com