Questions: Virtual Memory and Demand Paging

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A process is allocated 8 GB of virtual memory on a machine with only 4 GB of physical RAM. The program runs successfully. How is this possible?

AThe OS compresses pages in RAM to fit twice as much data
BVirtual memory allows pages not currently in use to reside on disk; the OS loads them on demand via page faults, keeping only the active working set in RAM
CThe CPU silently discards memory accesses that fall outside physical RAM
DThe program is allocated 4 GB of real memory and 4 GB of empty address space that cannot actually be used
Question 2 Multiple Choice

When a CPU instruction triggers a page fault, what is the correct sequence of events?

AThe process is terminated; the OS logs the error and notifies the user
BThe CPU retries the instruction automatically up to three times before invoking the OS
CThe hardware signals the OS; the OS finds the page on disk, loads it into a free frame, updates the page table, and restarts the faulting instruction
DThe OS immediately swaps the entire process out to disk and loads a different process
Question 3 True / False

A page fault usually signals a programming error, and the operating system is expected to terminate the faulting process.

TTrue
FFalse
Question 4 True / False

The maximum size of a process's virtual address space is determined by the amount of physical RAM installed in the system.

TTrue
FFalse
Question 5 Short Answer

Why does a program that causes many page faults run dramatically slower, and what is the extreme form of this condition called?

Think about your answer, then reveal below.