VISUAL BASIC

INTRODUCTION TO NET

BASICS OF NET FRAMEWORK

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
State whether the following statements about the managed and unmanaged code are TRUE or FALSE.i) Managed code is the code that is executed directly by the CLR.ii) Managed code directly compiles to the machine code and runs on the machine where it has to be compiled.iii) Unmanaged code does not have services such as security or memory management.
A
i-True, ii-False, iii-False
B
i-False, ii-True, iii-False
C
i-True, ii-False, iii-True
D
i-False, ii-False, iii-True
Explanation: 

Detailed explanation-1: -Managed code is the code that is compiled by the JIT compilers. Managed code is the code where resources are Garbage Collected. Managed code is the code that runs on top of Windows. Managed code is the code that is written to target the services of the CLR.

Detailed explanation-2: -Managed code is the code where resources are Garbage Collected. All the above statements are true.

Detailed explanation-3: -Difference between managed and unmanaged code? Managed code is the one that is executed by the CLR of the . NET framework while unmanaged or unsafe code is executed by the operating system.

Detailed explanation-4: -Common Type System (CTS) describes the datatypes that can be used by managed code. CTS defines how these types are declared, used and managed in the runtime. It facilitates cross-language integration, type safety, and high-performance code execution.

Detailed explanation-5: -Title: 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.

Detailed explanation-6: -Managed C++ and Common Language Runtime (CLR) are not supported. Compilations with switches beginning with “/CLR” will be skipped. This is a product limitation, and the source file with /clr option will be ignored.

There is 1 question to complete.