QuizzesPage Faults & Demand Paging — Concept Check
intermediate
operating-systems

Page Faults & Demand Paging — Concept Check

Questions on Page Faults & Demand Paging. A page fault occurs when a process accesses a virtual page not currently in physical RAM, triggering the OS to load it from disk — demand paging loads pages only when first accessed.

7 minutes 7 questions Pass at 70%
Time Limit
7 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

7 questions on Page Faults & Demand Paging — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A process experiences a high rate of major page faults. What is a likely consequence?

    • AIncreased CPU usage due to frequent context switching.
    • BDecreased latency as pages are loaded into RAM.
    • CIncreased latency due to disk I/O operations.
    • DImproved performance due to efficient memory usage.
  2. 2.What happens when a process accesses a virtual address not currently in RAM?

    • AThe page is loaded from disk into RAM, causing a page fault.
    • BThe OS immediately kills the process with SIGSEGV.
    • CThe page is already in RAM, so no action is needed.
    • DThe process continues execution without any delay.
  3. 3.A developer notices OutOfMemoryError in a Java application. What is the likely cause?

    • AThe process is accessing invalid memory addresses.
    • BThe application is using memory-mapped files inefficiently.
    • CThe JVM heap allocator cannot grow further.
    • DThe application has too many major page faults.
  4. 4.In a system with demand paging, what is a minor page fault?

    • AThe page is invalid, leading to process termination.
    • BThe page is loaded into RAM before it's accessed.
    • CThe page needs to be fetched from disk, causing high latency.
    • DThe page is already in RAM but the page table entry is not set up.
  5. 5.A service slows down and `vmstat` shows high `si`/`so`. What is likely happening?

    • AThe system is thrashing due to excessive swapping.
    • BThe disk is idle, indicating no page faults are occurring.
    • CThe network bandwidth is saturated, affecting performance.
    • DThe CPU is underutilized, causing the slowdown.
  6. 6.What occurs when a page fault handler finds an invalid virtual address?

    • AThe page is loaded from disk, fixing the fault.
    • BThe process receives SIGSEGV, terminating it.
    • CThe handler retries the instruction, hoping for success.
    • DThe OS allocates more memory to the process.
  7. 7.A process frequently accesses a large memory-mapped file. What is a potential benefit?

    • AAll pages are loaded into RAM, ensuring fast access.
    • BThe process avoids all page faults, improving performance.
    • COnly accessed pages consume RAM, conserving memory.
    • DThe entire file is cached, reducing disk usage.