โ† Back to 16. Virtual Machines

๐Ÿ“ The Java virtual machine

๐Ÿ“– From Operating System โ€ข 16. Virtual Machines โ€ข 12 questions available

Practice MCQs for The Java virtual machine. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

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

2
Easy Questions
6
Medium Questions
4
Hard Questions

๐Ÿ“ Sample Questions

Q1. An administrator configures two zones on a Solaris 10 host and assigns each zone 50โ€ฏ% of the physical CPU capacity. Which statement best describes how each zoneโ€™s scheduler will treat its CPU resources?

๐Ÿ”น A. Each zone will see two virtual CPUs and schedule them as if they were dedicated cores.
๐Ÿ”น B. Each zone will perceive a single virtual CPU that can use the full physical CPU, but the global scheduler limits actual usage to 50โ€ฏ%.
๐Ÿ”น C. Each zone receives a fixed time slice that guarantees exactly half of every CPU cycle.
๐Ÿ”น D. Each zoneโ€™s scheduler is unaware of the physical limit and may overโ€‘commit CPU time.

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

Q2. A zone is allocated 2โ€ฏGB of memory, but a Java application inside the zone requires 3โ€ฏGB. What is the most likely outcome?

๐Ÿ”น A. The application will run normally because zones can borrow memory from the global pool.
๐Ÿ”น B. The zone will trigger swapping, potentially degrading performance.
๐Ÿ”น C. The VMM will automatically expand the zoneโ€™s memory limit to satisfy the request.
๐Ÿ”น D. The application will fail to start with an OutOfMemoryError.

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

Q3. Why are Solaris zones considered lighterโ€‘weight than full hardware virtualization solutions such as Xen or VMware?

๐Ÿ”น A. Zones share the same kernel and avoid emulating hardware devices, reducing overhead.
๐Ÿ”น B. Zones duplicate the entire operating system image, increasing memory usage.
๐Ÿ”น C. Zones require a separate hypervisor that adds extra processing steps.
๐Ÿ”น D. Zones virtualize the CPU using binary translation, which is slower than hardware assistance.

๐Ÿ’ก 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