Operating Systems
3.0 Credits
Midterm Exam Review (Qns & Ans)
2025
©2025
, Multiple Choice Questions (10 Questions)
1. Question:
Modern operating systems can be classified by their kernel
architecture. Which architecture minimizes the code running in
privileged mode by delegating many services to user space?
- a. Monolithic kernel
- b. Microkernel
- c. Hybrid kernel
- d. Exokernel
ANS:
b. Microkernel
Rationale:
A microkernel places only essential services (like IPC and basic
scheduling) in kernel space, while other services (device drivers,
file systems) run in user space, thereby enhancing fault isolation
and modularity.
2. Question:
Which scheduling algorithm is best suited for real‑time operating
systems where meeting deadlines is critical?
- a. Round Robin
- b. First-Come-First-Served
- c. Rate Monotonic Scheduling
- d. Shortest Job First
ANS:
c. Rate Monotonic Scheduling
Rationale:
Rate Monotonic Scheduling (RMS) is a fixed-priority algorithm
proven to be optimal for preemptive real‑time systems, where tasks
with shorter periods are given higher priorities.
©2025
, 3. Question:
In the context of process synchronization, which of the following
mechanisms is commonly used to prevent race conditions by
ensuring mutual exclusion?
- a. Semaphores
- b. Signals
- c. Polling
- d. Forking
ANS:
a. Semaphores
Rationale:
Semaphores are synchronization primitives that regulate access
to shared resources, preventing race conditions by allowing only
one process to modify the shared state at a time.
4. Question:
Which memory management technique enables the operating
system to allow processes to use more memory than physically
available by temporarily transferring inactive pages to disk?
- a. Paging
- b. Segmentation
- c. Virtual memory
- d. Swapping
ANS:
c. Virtual memory
Rationale:
Virtual memory uses techniques such as paging and swapping to
extend available memory beyond the physical limits, allowing larger
applications to run by using disk space as an extension of RAM.
5. Question:
In modern file systems, what is the primary purpose of
journaling?
- a. To speed up file access times
©2025