← Back to 9. Virtual Memory

📝 Memory mapped I/O

📖 From Operating System • 9. Virtual Memory • 10 questions available

Practice MCQs for Memory mapped I/O. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

🔄 Last updated: 2026-07-26

2
Easy Questions
5
Medium Questions
3
Hard Questions

📝 Sample Questions

Q1. A child process created by fork() needs to write to a stack page that is marked copy‑on‑write. Which action ensures the parent’s stack remains unchanged?

🔹 A. Modify the original page directly
🔹 B. The OS allocates a new zero‑filled page and maps it to the child
🔹 C. The child shares the same physical page
🔹 D. The OS disables copy‑on‑write for that page

💡 Difficulty: easy | ✅ Correct: B

Q2. A system has a limited pool of free pages for copy‑on‑write operations. If two processes simultaneously fork, how should the OS allocate pages to avoid running out of free pages?

🔹 A. Allocate one shared free page for both children
🔹 B. Allocate separate free pages from the pool for each child
🔹 C. Delay the second fork until the first child releases its page
🔹 D. Reuse the parent’s original pages for the children

💡 Difficulty: medium | ✅ Correct: D

Q3. Assume a system uses zero‑fill‑on‑demand for new pages. If a process requests a new stack page, what initial content will the page contain?

🔹 A. All bits set to 1
🔹 B. A random pattern from previous memory
🔹 C. All bits set to 0
🔹 D. The contents of the parent’s stack page

💡 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