Questions: Kernel Mode and Privilege Levels

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A user-mode application tries to directly write to an I/O port to control a hardware device, bypassing the OS. What happens?

AThe write succeeds if the application has been granted administrator privileges by the OS
BThe write succeeds unless the OS has explicitly blocked that I/O address in software
CThe CPU raises a hardware exception, transferring control to the kernel — the application cannot execute the instruction regardless of OS software permissions
DThe write is queued and the OS decides whether to forward it to the hardware
Question 2 Multiple Choice

When an application executes a system call, it provides the system call number and its arguments. Why can't the application also specify which address in the kernel to jump to?

AKernel addresses are encrypted and inaccessible from user mode
BThe OS validates the jump address before executing it
CThe hardware forces system call entry through a fixed vector table established at boot time — the application provides arguments but the kernel entry point is determined by the hardware, not the caller
DApplications can specify any kernel function, but the OS ignores unauthorized requests
Question 3 True / False

User-mode applications are restricted from directly accessing hardware because the operating system has configured software rules they are expected to follow — a well-behaved application respects these rules, but a malicious one could bypass them.

TTrue
FFalse
Question 4 True / False

The timer interrupt is essential for a preemptive operating system because it gives the kernel a way to regain control from a running user process even when that process has not voluntarily made a system call.

TTrue
FFalse
Question 5 Short Answer

Why does the kernel mediate all hardware interactions rather than letting applications interact with hardware directly? What would go wrong without this separation?

Think about your answer, then reveal below.