CS FundamentalsVery hardAmazon · Microsoft MCQ pattern
Reference string: 5, 0, 3, 8, 1, 6, 2, 9, 4, 7, 0, 3, 8. With 3 frames, initially empty, how many page faults does FIFO replacement cause?
- A. 13
- B. 11
- C. 14
- D. 12
Correct answer: A. 13
Walking the string with 3 frames under FIFO (evict the oldest-loaded page) gives 13 faults. LRU on the same string gives 13, and Optimal gives 11 as the guaranteed minimum.
More Operating Systems questions
- A disk has cylinders 0–199 and the head is at cylinder 53. Pending requests: 98, 183, 37, 122, 14, 124, 65, 67. What is the total head…
- A disk has cylinders 0–199 and the head is at cylinder 53, moving towards cylinder 199. Pending requests: 98, 183, 37, 122, 14, 124, 65…
- A disk has cylinders 0–199 and the head is at cylinder 53, moving towards cylinder 199. Pending requests: 98, 183, 37, 122, 14, 124, 65…
- A disk has cylinders 0–199 and the head is at cylinder 76. Pending requests: 45, 130, 12, 180, 90, 150, 60, 170. What is the total head…
- A disk has cylinders 0–199 and the head is at cylinder 76, moving towards cylinder 0. Pending requests: 45, 130, 12, 180, 90, 150, 60…
- A disk has cylinders 0–199 and the head is at cylinder 76, moving towards cylinder 0. Pending requests: 45, 130, 12, 180, 90, 150, 60…