C# Programming - .NET Framework - Discussion

Discussion Forum : .NET Framework - General Questions (Q.No. 1)
1.
Which of the following statements are TRUE about the .NET CLR?
  1. It provides a language-neutral development & execution environment.
  2. It ensures that an application would not be able to access memory that it is not authorized to access.
  3. It provides services to run "managed" applications.
  4. The resources are garbage collected.
  5. It provides services to run "unmanaged" applications.
Only 1 and 2
Only 1, 2 and 4
1, 2, 3, 4
Only 4 and 5
Only 3 and 4
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
50 comments Page 5 of 5.

VENKATESH said:   1 decade ago
CLR is an execution environment and it provides to access some memory.

Ritesh Kumar said:   10 years ago
Difference between Int, Int16, Int32 and Int64?

Kaushal said:   10 years ago
CLR is Common Language Runtime: The virtual machine component of Microsoft's .NET framework, manages the execution of .NET programs.

A process known as just-in-time compilation converts compiled code into machine instructions which the computer's CPU then executes.

Ram said:   10 years ago
What is CLS?

Arfab said:   10 years ago
Network is started CLR provides the following:

1. Modern memory management- the resources are automatically garbage collected.

2. Ability to use mixed languages.

3. Better security.

4. Clean way for software components to interact.

Managed code is executable under CLR.
(2)

GardenExit said:   9 years ago
Native code is not a machine code.

.Net languages all converge to IL (intermediate Language) and executed by the runtime, the runtime runs Win32.dll,kernel.dll, ui.dll, etc... which are all COM objects written in C++ in the form of Components and Containers objects (which exist in their C# form also in managed code).

COM Objects are unmanaged code.

But where the answer is wrong, it should be 1,2,3,4 and 5 is you can run unmanaged code from C# compilers, using the unmanaged keyword and using System.

Interop wrappers around the unmanaged code to marshal, say, marshalling method calls and parameter passing into functions in the IDispatch interface of a COM object.
(2)

Mazid said:   9 years ago
What do you mean by language neutral development?
(1)

Anand Sami said:   9 years ago
CLR provide the managed code.
(1)

Ravindra Reddy M said:   9 years ago
That is Correct Answer, CLR Provides Managed Code.
(2)

Krishan chandra gupta said:   8 years ago
CLR converting Managed code[VB, C#, J#] to native code which is system understandable.
C#-------> [compiler ]--------->IL code----------->[JIT]----------> Native code.
CLR is checking the code is managed code or not,
CLR provide type safety.
It is ensured that an application would not access the memory that is not Authorised to access.
(4)


Post your comments here:

Your comments will be displayed after verification.