CS FundamentalsVery hardAmazon · Microsoft MCQ pattern

Reference string: 3, 8, 2, 8, 9, 3, 2, 9, 3, 8, 2, 9, 8. With 3 frames, initially empty, how many page faults does FIFO replacement cause?

  1. A. 8
  2. B. 9
  3. C. 5
  4. D. 7

Correct answer: A. 8

Walking the string with 3 frames under FIFO (evict the oldest-loaded page) gives 8 faults. LRU on the same string gives 9, and Optimal gives 5 as the guaranteed minimum.

More Operating Systems questions

Exams that ask this topic