← Back to 9. Virtual Memory

📝 Shared memory in the Windows API

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

Practice MCQs for Shared memory in the Windows API. 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
5
Hard Questions

📝 Sample Questions

Q1. What does the copy‑on‑write mechanism do when a child process writes to a shared page?

🔹 A. It changes the original page for both processes
🔹 B. It creates a private copy for the child while leaving the parent’s page unchanged
🔹 C. It deletes the page from both processes
🔹 D. It merges the child’s changes back into the parent’s page

💡 Difficulty: easy | ✅ Correct: B

Q2. If a process attempts to write to a page marked copy‑on‑write, which sequence correctly describes the kernel’s actions?

🔹 A. Allocate a new page, copy the contents, update the page table, then perform the write
🔹 B. Immediately write to the original page
🔹 C. Swap the entire process to disk
🔹 D. Raise an access‑violation exception

💡 Difficulty: medium | ✅ Correct: A

Q3. If zero‑fill‑on‑demand fails and returns a page containing leftover data, what risk does this introduce?

🔹 A. Increased CPU utilization
🔹 B. Potential leakage of confidential information
🔹 C. Higher network latency
🔹 D. Improved application performance

💡 Difficulty: hard | ✅ Correct: A

⬆️ 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