Difficulty: Easy
Correct Answer: Managed code
Explanation:
Introduction / Context:
.NET distinguishes between code that runs under the CLR with services like type safety and garbage collection and code that does not.
Given Data / Assumptions:
Concept / Approach:
Managed code is compiled to IL, verified, and executed under CLR supervision. Unmanaged/native code executes directly on the OS without CLR services.
Step-by-Step Solution:
Verification / Alternative check:
Official .NET terminology consistently uses “managed code”.
Why Other Options Are Wrong:
Common Pitfalls:
Equating “native” with “managed” — they are distinct.
Final Answer:
Managed code
Discussion & Comments