Which action is privileged, for the kernel only?
- Printing a document
- Changing the clock
- Opening a text file
Your app wants to save a file. What must it do?
- Ask the operating system
- Wait until no other app runs
- Drive the disk motor itself
A library call and a system call cost about the same.
Circle one: True False
Why does the kernel refuse to let programs touch devices directly?
- It could grab or corrupt the device
- Devices run faster without programs
- To keep its own source secret
Order the steps of reading a file.
- Trap first, then decide what to ask
- Fetch from disk, then ask the kernel
- Ask, trap, fetch, return
A student says creating a user folder needs kernel privilege like changing the clock. What is wrong?
- Both actions are equally privileged
- Only the clock change is privileged
- Neither action involves the kernel
A new laptop has bare hardware. What do you install before office tools, and why?
- The OS, to manage the machine
- A compiler, to build the OS later
- Office tools, to test the screen
A program ships secret data to the disk by driving it directly and corrupts a neighbor. Which rule broke?
- The disk spun too slowly
- The neighbor read too eagerly
- It skipped the kernel doorway