98-349 · Question #357
Which statement describes code executing in user mode?
The correct answer is D. It has no ability to directly access hardware or reference memory. Code executing in user mode operates within a restricted environment and cannot directly access hardware or reference memory outside its allocated space.
Question
Exhibit
Options
- AIt has complete and unrestricted access to the underlying hardware.
- BIt can switch to kernel mode execution to carry out i/o functions.
- CIt can access every memory address and execute any CPU instruction.
- DIt has no ability to directly access hardware or reference memory.
How the community answered
(34 responses)- A6% (2)
- B3% (1)
- D91% (31)
Why each option
Code executing in user mode operates within a restricted environment and cannot directly access hardware or reference memory outside its allocated space.
Complete and unrestricted access to underlying hardware is characteristic of kernel mode, not user mode, which is designed to protect system stability and security.
While user mode code can *request* the kernel to perform I/O functions via system calls, it does not directly 'switch to kernel mode execution' itself; the kernel handles the transition and execution of the privileged operation.
Accessing every memory address and executing any CPU instruction are privileges of kernel mode, whereas user mode operates within strict memory and instruction set limitations for security and stability.
User mode code is executed in a restricted environment, preventing direct access to hardware and limiting memory access to its own virtual memory space. To perform privileged operations like hardware I/O or accessing system memory, user mode applications must make system calls to the operating system kernel, which then executes the request in kernel mode.
Concept tested: User mode vs. Kernel mode execution
Source: https://learn.microsoft.com/windows-hardware/drivers/gettingstarted/user-mode-and-kernel-mode
Topics
Community Discussion
No community discussion yet for this question.
