CS FundamentalsModerateTCS NQT · Infosys interview pattern

Reference string: 1, 3, 0, 3, 5, 6, 3, 1, 0, 6, 5, 3. With 3 frames, initially empty, how many page faults does FIFO replacement cause?

  1. A. 10
  2. B. 9
  3. C. 11
  4. D. 7

Correct answer: C. 11

FIFO hits only on the second reference (3); every later page has just been evicted when it returns: faults at 1, 3, 0, 5, 6, 3, 1, 0, 6, 5, 3 = 11. 7 is the Optimal count for the same string.

More Operating Systems questions

Exams that ask this topic