Difficulty: Easy
Correct Answer: 1, 2, 3, 4
Explanation:
Introduction / Context:The Common Language Runtime (CLR) is the virtual machine component of .NET responsible for executing managed code, enforcing type safety, and handling runtime services.
Given Data / Assumptions:
Concept / Approach:Key CLR features include language neutrality via the Common Type System (CTS) and Common Language Specification (CLS), memory safety via verification, managed execution services, and automatic garbage collection. Unmanaged applications do not “run on” the CLR, although interop is supported.
Step-by-Step Solution:
1) Language-neutral environment — true (CTS/CLS allow cross-language interoperability).2) Memory safety/authorization — true for managed code through verification and runtime checks.3) Services for managed apps — true; CLR executes IL with JIT and provides services.4) Garbage collection — true; CLR includes GC for managed objects.5) Services for unmanaged apps — false; unmanaged code runs outside the CLR (interop exists but is not “managed”).Verification / Alternative check:Managed vs unmanaged boundaries in .NET documentation confirm 1–4 as standard CLR responsibilities.
Why Other Options Are Wrong:
Common Pitfalls:Assuming unmanaged code executes under the CLR rather than via interop.
Final Answer:1, 2, 3, 4
Discussion & Comments