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 2 of 5.

Abhishek said:   1 decade ago
I think option 2 is some what not reletive as how come it will restrict the memory occupancy of other object. (Might be type safety thing would be there).

Xyz said:   1 decade ago
The runtime automatically handles object layout and manages references to objects, releasing them when they are no longer being used. Objects whose lifetimes are managed in this way are called managed data. Garbage collection eliminates memory leaks as well as some other common programming errors. If your code is managed, you can use managed data, unmanaged data, or both managed and unmanaged data in your .NET Framework application. Because language compilers supply their own types, such as primitive types, you might not always know (or need to know) whether your data is being managed.

Prashant said:   1 decade ago
These are the basic features of CLS in .Net framework. So the given answer is absolutely right.

Praful Godhankar said:   1 decade ago
The CLR provides Language compatibility to developed applications in .Net

RANJEET said:   1 decade ago
CLR convert source to an intermidiate code that is further executed by JIT compiler.

Suresh said:   1 decade ago
The option C is Correct, because the code run on the CLR is called Managed Code.

Robin said:   1 decade ago
The CLR provide language compatibility to developed application in .Net.

Inceptos said:   1 decade ago
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.

Shyam said:   1 decade ago
Ability to use mixed languages.

Mohit bansal said:   1 decade ago
CLR is responsible for all the execution of .Net framework. So it execute the native code.


Post your comments here:

Your comments will be displayed after verification.