Questions: Demand Paging and Page Faults

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A process accesses a valid virtual address, but that page is not currently in physical memory. Which sequence correctly describes what happens next?

AThe process immediately crashes with a segmentation fault because the address is not in RAM
BThe hardware raises a page fault exception; the kernel allocates a physical frame, loads the page from disk, updates the page table, and restarts the faulting instruction
CThe OS terminates the process for attempting to access unmapped memory
DThe hardware automatically fetches the page from disk and continues execution without kernel involvement
Question 2 Multiple Choice

A system is experiencing thrashing. Which explanation best describes the underlying cause?

AThe CPU is too slow to service page faults efficiently, causing a fault backlog
BThe combined working sets of the running processes exceed physical memory, so pages evicted to make room for faults are immediately needed again, causing near-continuous faulting
CThe page replacement algorithm is poorly tuned and consistently evicts recently-used pages
DDisk fragmentation has increased page fault service time, creating a performance bottleneck
Question 3 True / False

A page fault does not necessarily indicate a program error — it is the normal mechanism by which valid pages are loaded into memory on their first access under demand paging.

TTrue
FFalse
Question 4 True / False

Demand paging requires that each process's entire virtual address space fit within physical memory, since any page not currently present in RAM will cause the process to crash.

TTrue
FFalse
Question 5 Short Answer

Why does even a small page fault rate — say, 1 fault per 1,000 memory accesses — have such a disproportionately large impact on overall performance?

Think about your answer, then reveal below.