โ† Back to 9. Virtual Memory

๐Ÿ“ Optimal page replacement

๐Ÿ“– From Operating System โ€ข 9. Virtual Memory โ€ข 9 questions available

Practice MCQs for Optimal page replacement. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

๐Ÿ”„ Last updated: 2026-07-26

2
Easy Questions
4
Medium Questions
3
Hard Questions

๐Ÿ“ Sample Questions

Q1. A program accesses pages in the order 1,2,3,4,1,2,5,1,2,3,4,5 and the system has three page frames. Using the optimal pageโ€‘replacement algorithm, how many page faults occur?

๐Ÿ”น A. 6
๐Ÿ”น B. 7
๐Ÿ”น C. 8
๐Ÿ”น D. 9

๐Ÿ’ก Difficulty: easy | โœ… Correct: B

Q2. What is the definition of the optimal pageโ€‘replacement algorithm in demandโ€‘paging systems?

๐Ÿ”น A. Replace the page that has been in memory the longest.
๐Ÿ”น B. Replace the page whose next reference occurs farthest in the future.
๐Ÿ”น C. Replace a randomly chosen page.
๐Ÿ”น D. Replace the page with the smallest page number.

๐Ÿ’ก Difficulty: medium | โœ… Correct: B

Q3. A workload causes 15 page faults under the optimal algorithm and 25 faults under FIFO. If each pageโ€‘in from disk takes 10โ€ฏms, what is the total reduction in swapโ€‘in time (in milliseconds) when using the optimal algorithm?

๐Ÿ”น A. 50
๐Ÿ”น B. 75
๐Ÿ”น C. 100
๐Ÿ”น D. 125

๐Ÿ’ก Difficulty: hard | โœ… Correct: C

โฌ†๏ธ View all questions in the quiz below

๐Ÿ”— Related Topics

๐Ÿ“ Basic concepts of Demand Paging๐Ÿ“ Performance of demand paging๐Ÿ“ Copy on Write in virtual Memory๐Ÿ“ Basic page replacement in virtual Memory๐Ÿ“ FIFO page replacement
๐Ÿš€ Start Quiz ๐Ÿ“ Practice Mode