CSSLP · Question #276
CSSLP Question #276: Real Exam Question with Answer & Explanation
The correct answer is C: Managed code executes under management of a runtime environment, whereas unmanaged code is. 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 re
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
Explanation
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.
Common mistakes.
- A. 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.
- B. 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.
Concept tested. Managed vs. Unmanaged code
Reference. https://learn.microsoft.com/en-us/dotnet/standard/managed-code
Topics
Community Discussion
No community discussion yet for this question.