CS FundamentalsHardGATE CS (PYQ pattern)

FIFO page replacement is run on the string 6, 1, 7, 2, 7, 2, 1, 5, 1, 1, 7, 5, 3, 1, 1, 7, 4, 5, 3, 4 (memory initially empty) with each frame count from 1 to 7. For how many of the six increases f to f + 1 (f = 1..6) does the number of faults go UP?

  1. A. 1
  2. B. 2
  3. C. 0
  4. D. 3

Correct answer: A. 1

Fault counts for 1..7 frames are [18, 14, 10, 11, 7, 7, 7]; the counts rise at 1 of the six steps (frames 3→4).

More Operating Systems questions

Exams that ask this topic