🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Virtual Memory: all 10 questions

Quiz: Virtual Memory · Question 7 of 10

With 3 frames and the reference string 1, 2, 3, 1, 4, 2, how many page faults does LRU cause?

With 3 frames and the reference string 1, 2, 3, 1, 4, 2, how many page faults does LRU cause?

  1. A.3
  2. B.4
  3. C.5
  4. D.6
Answer & explanation

Correct answer: 5

1, 2, 3 fault; 1 hits; 4 replaces 2 (least recently used); 2 then faults again. Total 5.

Can you get the rest right without peeking?

Take the timed Quiz: Virtual Memory quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →