Questions: Virtual Memory and Paging

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A program accesses virtual address 0x5000. The TLB has no entry for this page, but the page table shows the page IS present in physical memory. What happens?

AA page fault occurs and the OS loads the page from disk
BThe hardware walks the page table, finds the frame number, loads the mapping into the TLB, and the access succeeds — no page fault
CThe program crashes because a TLB miss means the page is inaccessible
DThe OS suspends the program until the TLB has an available slot
Question 2 Multiple Choice

Process A writes data to its virtual address 0x1000. Process B also uses virtual address 0x1000. What does virtual memory guarantee about these accesses?

AThey access the same physical location, which is protected by a lock the OS manages
BThe OS prevents any two processes from using overlapping virtual addresses
CEach process has its own page table mapping its virtual addresses to separate physical frames, so they are fully isolated
DThe TLB arbitrates which process gets priority when virtual addresses collide
Question 3 True / False

The primary purpose of virtual memory is to allow programs to use more total memory than physically fits in RAM by storing excess pages on disk.

TTrue
FFalse
Question 4 True / False

The Translation Lookaside Buffer (TLB) is a hardware cache for page table entries, and a TLB hit allows address translation without accessing the page table in main memory.

TTrue
FFalse
Question 5 Short Answer

Why is a TLB miss not the same as a page fault, and what happens in each case?

Think about your answer, then reveal below.