COMPLETE PRACTICE TEST BANK —
QUESTIONS WITH VERIFIED ANSWERS &
RATIONALES
TABLE OF CONTENTS
Section Topic Questions
Section 1 Operating System Fundamentals & Architecture Q1–Q40
Section 2 Process & Thread Management Q41–Q70
Section 3 CPU Scheduling Algorithms Q71–Q100
Section 4 Memory Management & Virtual Memory Q101–Q130
Section 5 File Systems & Storage Q131–Q155
Section 6 Concurrency, Synchronization & Deadlocks Q156–Q185
Section 7 Security & Access Control Q186–Q210
Section 8 System Performance & Optimization Q211–Q235
Section 9 Virtualization & Distributed Systems Q236–Q260
Section 10 Comprehensive Review & Scenario-Based Questions Q261–Q300
SECTION 1: OPERATING SYSTEM FUNDAMENTALS & ARCHITECTURE
Questions 1–40
Q1. What is the primary function of an operating system?
A) To provide a graphical user interface exclusively
,B) To manage hardware resources and provide services to application programs
C) To compile source code into executable programs
D) To store all user data permanently on disk
Correct Answer: B) To manage hardware resources and provide services to application
programs
Rationale: The operating system serves as an intermediary between users/applications and the
computer hardware, managing resources like CPU time, memory, and I/O devices while providing a
consistent interface for applications.
Q2. Which of the following correctly describes the relationship between hardware, operating
system, application programs, and the user?
A) Application Programs → Operating System → Hardware → User
B) User → Application Programs → Operating System → Hardware
C) User → Hardware → Operating System → Application Programs
D) Hardware → User → Application Programs → Operating System
Correct Answer: B) User → Application Programs → Operating System → Hardware
Rationale: The user interacts with application programs, which make system calls to the operating
system, which in turn manages and communicates with the hardware.
Q3. Which component of the operating system is responsible for allocating CPU time to
processes?
A) Memory Manager
B) File Manager
C) Scheduler
D) I/O Manager
Correct Answer: C) Scheduler
Rationale: The scheduler (part of the process management subsystem) is responsible for selecting
which process runs on the CPU at any given time, implementing the CPU scheduling policies.
Q4. A program stored on disk is considered which of the following?
A) A process
B) A thread
C) A passive entity
D) An active entity
Correct Answer: C) A passive entity
,Rationale: A program on disk is a passive collection of instructions (a file). It becomes an active
process only when loaded into memory and executed.
Q5. What is the kernel's primary role in an operating system?
A) Provide user interface
B) Manage system resources and hardware
C) Compile programs
D) Manage network connections only
Correct Answer: B) Manage system resources and hardware
Rationale: The kernel is the core of the operating system, with complete control over system
resources including CPU, memory, and I/O devices. It provides the lowest level of abstraction and
remains in memory at all times.
Q6. Which of the following best describes the difference between user mode and kernel mode?
A) User mode has direct hardware access; kernel mode does not
B) Kernel mode has unrestricted access to hardware; user mode has limited access
C) User mode is faster than kernel mode
D) There is no real difference
Correct Answer: B) Kernel mode has unrestricted access to hardware; user mode has limited
access
Rationale: Kernel mode (privileged mode) allows the OS to execute privileged instructions and
access all hardware resources. User mode restricts applications from directly accessing hardware to
prevent system crashes and security breaches.
Q7. What happens when a user program executes a system call?
A) The program crashes
B) The CPU switches from user mode to kernel mode
C) The program is terminated
D) The kernel switches to user mode
Correct Answer: B) The CPU switches from user mode to kernel mode
Rationale: When a program needs OS services, it performs a system call, which triggers a trap,
causing the CPU to switch from user mode to kernel mode so the OS can execute the request safely.
Q8. Which type of kernel architecture runs all core operating system services in a single address
space?
, A) Microkernel
B) Monolithic kernel
C) Exokernel
D) Hybrid kernel
Correct Answer: B) Monolithic kernel
Rationale: In a monolithic kernel, all OS services (including device drivers, memory management,
and file systems) run in the same kernel address space. This provides high performance but can cause
system instability if any component fails.
Q9. What is a significant advantage of a microkernel architecture?
A) Faster execution speed
B) Easier to maintain and extend
C) Direct hardware access for all components
D) No need for context switching
Correct Answer: B) Easier to maintain and extend
Rationale: Microkernels run only essential services in kernel space, with other services in user space.
This modular design makes the system more stable, easier to maintain, and simpler to extend.
Q10. Which operating system component interprets user commands?
A) Kernel
B) Shell
C) Scheduler
D) File Manager
Correct Answer: B) Shell
Rationale: The shell is the command-line interpreter that accepts user commands, interprets them,
and executes them by making appropriate system calls to the kernel.
Q11. What is the bootstrap loader responsible for?
A) Managing virtual memory
B) Loading the operating system into memory
C) Scheduling processes
D) Managing file systems
Correct Answer: B) Loading the operating system into memory