🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Page Replacement Numericals: all 15 questions

Quiz: Page Replacement Numericals · Question 10 of 15

In the simulator, why does the LRU branch remove a page and append it again on a hit?

In the simulator, why does the LRU branch remove a page and append it again on a hit?

  1. A.To count the hit as a fault
  2. B.To make LRU behave like FIFO
  3. C.To keep the list in order of last use, so the front is always the least recently used page
  4. D.Because Python lists cannot be searched
Answer & explanation

Correct answer: To keep the list in order of last use, so the front is always the least recently used page

With the list in use order, LRU and FIFO can both evict the front element.

Can you get the rest right without peeking?

Take the timed Quiz: Page Replacement Numericals quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →