โ† Back to 9. Virtual Memory

๐Ÿ“ Basic page replacement in virtual Memory

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

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

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

4
Easy Questions
9
Medium Questions
9
Hard Questions

๐Ÿ“ Sample Questions

Q1. What does the valid bit indicate in a pageโ€‘table entry?

๐Ÿ”น A. The page is currently resident in physical memory
๐Ÿ”น B. The page resides on secondary storage
๐Ÿ”น C. The page is readโ€‘only
๐Ÿ”น D. The page is writeโ€‘protected

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

Q2. Why does a lazy swapper improve system performance compared to swapping whole processes?

๐Ÿ”น A. It brings in only pages that will actually be used
๐Ÿ”น B. It reduces CPU scheduling overhead
๐Ÿ”น C. It eliminates the need for page tables
๐Ÿ”น D. It guarantees zero page faults

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

Q3. Explain why marking a pageโ€‘table entry as invalid can represent both an illegal address and a page residing on disk, and how the system distinguishes the two cases.

๐Ÿ”น A. Invalid always means illegal address; disk pages are never marked invalid
๐Ÿ”น B. The OS stores a secondary flag indicating whether the invalid page is on disk
๐Ÿ”น C. The hardware raises a different exception for illegal addresses
๐Ÿ”น D. The pageโ€‘table entry includes a pointer to the disk block when invalid

๐Ÿ’ก 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๐Ÿ“ FIFO page replacement๐Ÿ“ Optimal page replacement
๐Ÿš€ Start Quiz ๐Ÿ“ Practice Mode