Sample questions
Question 1Easy
The operating system running inside a virtual machine is called the:
- Bootloader
- Guest OS
- Host OS
- Firmware
Answer: B. Guest OS
Explanation
The guest OS runs on virtual hardware; the host is the physical machine (or its OS for Type 2 hypervisors).
Step-by-step solution
- The physical machine runs the host OS or hypervisor.
- Each virtual machine runs its own OS.
- That OS inside the VM is the guest OS.
Why the other options are wrong
- A. The bootloader only starts an OS.
- C. The host OS runs on the physical machine.
- D. Firmware is software in hardware chips such as BIOS.
Tip: Guest lives inside; host provides the house.
Question 2Easy
Which of these is NOT virtualised in a typical virtual machine?
- Memory
- CPU
- Network interface
- The host's power supply
Answer: D. The host's power supply
Explanation
VMs see virtual CPUs, memory, disks and NICs; the physical power supply belongs to the host hardware.
Step-by-step solution
- VMs see virtual CPUs, memory, disks and network cards.
- The physical power supply belongs to the host.
- It is not virtualised for each VM.
Why the other options are wrong
- A. Memory is virtualised.
- B. CPU is virtualised as vCPUs.
- C. Network interfaces are virtualised as vNICs.
Question 3Easy
Each virtual machine typically includes:
- Its own guest operating system
- A kernel shared with the host machine
- No operating system of any kind
- Only the compiled application binary
Answer: A. Its own guest operating system
Explanation
VMs virtualise hardware, so each runs a complete guest OS with its own kernel.
Step-by-step solution
- A VM virtualises hardware.
- So it needs its own complete guest OS with its own kernel.
Why the other options are wrong
- B. Sharing the host kernel describes containers.
- C. A VM needs an OS to run applications.
- D. A binary alone describes neither a VM nor a container.
Tip: VM = own kernel; container = shared kernel.
Question 4Easy
- A tool used to compress large files
- Software that runs VMs
- A very fast CPU designed for data centres
- A special type of network cable
Answer: B. Software that runs VMs
Explanation
The hypervisor (virtual machine monitor) shares physical CPU, memory and I/O among virtual machines.
Step-by-step solution
- A hypervisor is software (a virtual machine monitor).
- It shares the physical CPU, memory and I/O among VMs.
- Each VM thinks it has its own hardware.
Why the other options are wrong
- A. Compression tools are unrelated.
- C. It is software, not a CPU.
- D. It is not a cable.
Question 5Medium
Which is an advantage of VMs over containers?
- Stronger isolation, since each has its own kernel
- Faster start-up time
- Smaller image size
- Lower memory overhead
Answer: A. Stronger isolation, since each has its own kernel
Explanation
VMs are heavier but isolate at the hardware-virtualisation level; a kernel exploit in one container can affect others on the host.
Step-by-step solution
- Each VM has its own kernel.
- A kernel exploit in one VM does not directly affect others.
- Containers share a kernel, so isolation is weaker.
Why the other options are wrong
- B. Containers start faster than VMs.
- C. Container images are smaller.
- D. Containers use less memory.
Tip: VMs win on isolation; containers win on speed and size.
Question 6Medium
Overcommitting CPU or memory on a hypervisor means:
- Running the CPU above its rated clock frequency
- Giving every VM its own dedicated physical core
- Allocating beyond physical capacity
- Refusing to start more than one virtual machine
Answer: C. Allocating beyond physical capacity
Explanation
Overcommit raises utilisation, betting that not all VMs peak at once, but can cause contention if they do.
Step-by-step solution
- The hypervisor allocates more vCPUs or memory to VMs than physically exist.
- It bets that not all VMs peak at once.
- If they do, VMs compete for resources.
Why the other options are wrong
- A. That is overclocking.
- B. Dedicated cores is the opposite of overcommit.
- D. Overcommit is about running more, not fewer, VMs.
Question 7Medium
- The source code of the hypervisor
- All network traffic sent by the VM
- The VM's disk (and maybe memory) state at a point in time
- Only a screenshot of the virtual desktop
Answer: C. The VM's disk (and maybe memory) state at a point in time
Explanation
Snapshots allow rollback to an earlier state, useful before risky changes; they are not a substitute for proper backups.
Step-by-step solution
- A snapshot records the VM's disk state at a point in time.
- Some snapshots also capture memory.
- You can roll back to it later.
Why the other options are wrong
- A. It captures the VM, not the hypervisor's code.
- B. Snapshots do not record network traffic.
- D. It is not a screenshot.
Question 8Medium
Which statement correctly contrasts VMs and containers?
- Containers share the host kernel; VMs each have their own
- Both always include a full guest operating system
- VMs share the host kernel; containers each have their own
- Neither VMs nor containers provide any isolation
Answer: A. Containers share the host kernel; VMs each have their own
Explanation
Containers use OS-level isolation over a shared kernel, making them lighter and faster to start than VMs.
Step-by-step solution
- VMs virtualise hardware, so each has its own guest OS kernel.
- Containers virtualise the OS, so they share the host kernel.
Why the other options are wrong
- B. Containers do not include a full guest OS.
- C. This reverses the facts.
- D. Both provide isolation, at different levels.
Question 9Hard
Why can a Linux container image not normally run natively on a Windows kernel without an extra Linux VM layer?
- Container images are encrypted per operating system
- Windows does not support container networking
- Linux images are always too large for Windows
- Containers use the host kernel, which must match
Answer: D. Containers use the host kernel, which must match
Explanation
Because containers share the host kernel, a Linux container needs a Linux kernel, which tools on Windows provide via a lightweight VM.
Step-by-step solution
- Containers do not have their own kernel; they use the host's.
- A Linux image expects Linux system calls.
- A Windows kernel does not provide them, so a lightweight Linux VM is needed.
Why the other options are wrong
- A. Images are not encrypted per OS.
- B. Windows supports container networking.
- C. Size is not the issue.
Tip: Containers share the kernel, so the kernel type must match.
Question 10Hard
Hardware-assisted virtualisation features such as Intel VT-x and AMD-V primarily help by:
- Removing the need for a hypervisor altogether
- Encrypting all memory of every guest by default
- Doubling the number of physical cores on the chip
- Giving CPU support for running guests efficiently
Answer: D. Giving CPU support for running guests efficiently
Explanation
These CPU extensions let hypervisors trap privileged instructions in hardware, reducing software emulation.
Step-by-step solution
- Some CPU instructions are privileged and must be controlled by the hypervisor.
- Without hardware help, the hypervisor emulates them in software.
- VT-x and AMD-V let the CPU trap them directly, so guests run efficiently.
Why the other options are wrong
- A. A hypervisor is still needed.
- B. Memory encryption is a separate feature.
- C. They do not add cores.
Practise all 19 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →