In .NET terminology, code that targets and executes under the Common Language Runtime (CLR) is known as:

C# Programming .NET Framework Difficulty: Easy
Choose an option
  • A
    Unmanaged code
  • B
    Distributed code
  • C
    Legacy code
  • D
    Managed code
  • E
    Native code

Answer

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:

  • We need the standard term for CLR-targeting code.

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:

Identify CLR-supervised code term: “managed code”.Eliminate distractors that describe environment or legacy status rather than CLR execution.

Verification / Alternative check:Official .NET terminology consistently uses “managed code”.

Why Other Options Are Wrong:

  • Unmanaged/native: outside CLR.
  • Distributed/legacy: unrelated descriptors.

Common Pitfalls:Equating “native” with “managed” — they are distinct.

Final Answer:Managed code

Discussion & Comments
No comments yet. Be the first to comment!
More Questions from .NET Framework
Join Discussion