CS FundamentalsVery hardProduct-company MCQ pattern
Reference string: 1, 4, 1, 6, 2, 3, 6, 1, 2, 4, 3, 6, 4. With 3 frames, initially empty, how many page faults does FIFO replacement cause?
- A. 8
- B. 10
- C. 7
- D. 9
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 10, and Optimal gives 7 as the guaranteed minimum.
More Operating Systems questions
- Reference string: 8, 2, 9, 2, 4, 8, 9, 4, 2, 8, 4, 9, 2. With 3 frames, initially empty, how many page faults do FIFO, LRU and Optimal…
- Reference string: 8, 2, 9, 2, 4, 8, 9, 4, 2, 8, 4, 9, 2. With 4 frames, initially empty, how many page faults does LRU replacement cause?
- Reference string: 3, 8, 2, 8, 9, 3, 2, 9, 3, 8, 2, 9, 8. With 4 frames, initially empty, how many page faults do FIFO, LRU and Optimal…
- 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?
- Reference string: 6, 3, 1, 0, 3, 6, 1, 0, 6, 3, 1, 6. With 3 frames, initially empty, how many page faults do FIFO, LRU and Optimal…
- Reference string: 6, 3, 1, 0, 3, 6, 1, 0, 6, 3, 1, 6. With 4 frames, initially empty, how many page faults does LRU replacement cause?