← Back to 16. Virtual Machines

📝 Programming environment virtualization

📖 From Operating System • 16. Virtual Machines • 10 questions available

Practice MCQs for Programming environment virtualization. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

🔄 Last updated: 2026-07-27

2
Easy Questions
5
Medium Questions
3
Hard Questions

📝 Sample Questions

Q1. What does VCPU stand for in virtualization?

🔹 A. Virtual Central Processing Unit
🔹 B. Virtual CPU
🔹 C. Virtual Core Processing Unit
🔹 D. Virtualized Central Processor

💡 Difficulty: easy | ✅ Correct: A

Q2. A hypervisor on a CPU lacking hardware virtualization extensions must handle a privileged instruction executed by a guest OS. Which technique should the VMM use to correctly process this instruction?

🔹 A. Binary translation
🔹 B. Direct execution
🔹 C. Trap-and-emulate
🔹 D. Paravirtualization

💡 Difficulty: medium | ✅ Correct: A

Q3. Suppose a new CPU adds a virtualization extension that allows guest kernel mode to run in a separate privilege ring without trapping. How would this affect the need for trap-and-emulate for privileged instructions?

🔹 A. It eliminates all traps
🔹 B. It reduces but does not eliminate traps
🔹 C. It increases trap frequency
🔹 D. It has no effect

💡 Difficulty: hard | ✅ Correct: A

⬆️ View all questions in the quiz below

🔗 Related Topics

📝 Overview Virtual Machines📝 History Virtual Machines📝 Benefits and Features Virtual Machines📝 Building Blocks in Virtual Machines📝 Trap and emulate in Building Blocks
🚀 Start Quiz 📝 Practice Mode