nerdexam
Microsoft

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.

Understanding Operating System Configurations

Question

Which statement describes code executing in user mode?

Exhibit

98-349 question #357 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)
  • A
    6% (2)
  • B
    3% (1)
  • D
    91% (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.

AIt has complete and unrestricted access to the underlying hardware.

Complete and unrestricted access to underlying hardware is characteristic of kernel mode, not user mode, which is designed to protect system stability and security.

BIt can switch to kernel mode execution to carry out i/o functions.

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.

CIt can access every memory address and execute any CPU instruction.

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.

DIt has no ability to directly access hardware or reference memory.Correct

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

#user mode#kernel mode#operating system architecture

Community Discussion

No community discussion yet for this question.

Full 98-349 Practice