nerdexam
(ISC)2

CSSLP · Question #276

What are the differences between managed and unmanaged code technologies? Each correct answer represents a complete solution. Choose two.

The correct answer is C. Managed code executes under management of a runtime environment, whereas unmanaged code is D. Managed code is compiled into an intermediate code format, whereas unmanaged code is compiled. Managed code operates within a runtime environment that handles crucial tasks like memory management and security, and it is typically compiled into an intermediate bytecode format before execution. Conversely, unmanaged code executes directly on the hardware, requiring manual…

Secure Software Implementation

Question

What are the differences between managed and unmanaged code technologies? Each correct answer represents a complete solution. Choose two.

Options

  • AManaged code is referred to as Hex code, whereas unmanaged code is referred to as byte code.
  • BC and C++ are the examples of managed code, whereas Java EE and Microsoft.NET are the examples
  • CManaged code executes under management of a runtime environment, whereas unmanaged code is
  • DManaged code is compiled into an intermediate code format, whereas unmanaged code is compiled

How the community answered

(49 responses)
  • A
    2% (1)
  • B
    6% (3)
  • C
    92% (45)

Why each option

Managed code operates within a runtime environment that handles crucial tasks like memory management and security, and it is typically compiled into an intermediate bytecode format before execution. Conversely, unmanaged code executes directly on the hardware, requiring manual resource management, and is directly compiled into machine-specific native code.

AManaged code is referred to as Hex code, whereas unmanaged code is referred to as byte code.

Managed code is typically compiled to an intermediate bytecode, not 'Hex code,' which is a generic representation of binary data, and unmanaged code is compiled to native machine code, not 'byte code' in this context.

BC and C++ are the examples of managed code, whereas Java EE and Microsoft.NET are the examples

C and C++ are examples of unmanaged code, as they require manual memory management, while Java EE and Microsoft .NET are examples of managed code environments, making the statement's classification incorrect.

CManaged code executes under management of a runtime environment, whereas unmanaged code isCorrect

Managed code relies on a runtime environment (like the .NET Common Language Runtime or Java Virtual Machine) to provide services such as memory management, garbage collection, and exception handling, which unmanaged code lacks, executing directly with the OS without such abstractions.

DManaged code is compiled into an intermediate code format, whereas unmanaged code is compiledCorrect

Managed code is initially compiled into an intermediate language (e.g., CIL for .NET, bytecode for Java) that is then just-in-time (JIT) compiled at runtime, whereas unmanaged code is directly compiled into machine-specific native code by the compiler.

Concept tested: Managed vs. Unmanaged code

Source: https://learn.microsoft.com/en-us/dotnet/standard/managed-code

Topics

#Managed Code#Unmanaged Code#Runtime Environment#Code Compilation

Community Discussion

No community discussion yet for this question.

Full CSSLP Practice