Practice 20 OS Concepts multiple-choice questions designed for CDAC CCAT exam preparation. Click "Show Answer" to reveal the correct option with detailed explanation.
Show Answer & Explanation
Correct Answer: C — Priority Scheduling
Priority Scheduling can cause starvation - solved using aging.
Show Answer & Explanation
Correct Answer: C — LRU
LRU (Least Recently Used) is a page replacement algorithm, not CPU scheduling.
Show Answer & Explanation
Correct Answer: B — All four conditions hold simultaneously
Deadlock needs: Mutual Exclusion, Hold & Wait, No Preemption, Circular Wait.
Show Answer & Explanation
Correct Answer: B — Deadlock avoidance
Banker's algorithm avoids deadlock by checking safe states.
Show Answer & Explanation
Correct Answer: B — Process synchronization
Semaphores synchronize concurrent processes to avoid race conditions.
Show Answer & Explanation
Correct Answer: B — Page is not in memory
Page fault occurs when a required page is not in main memory.
Show Answer & Explanation
Correct Answer: B — Excessive paging activity
Thrashing: system spends more time paging than executing.
Show Answer & Explanation
Correct Answer: B — Disk as extension of RAM
Virtual memory uses disk space to extend available memory.
Show Answer & Explanation
Correct Answer: B — Saving and loading process states
Context switch saves current process state and loads another.
Show Answer & Explanation
Correct Answer: B — I/O or event
Blocked process waits for I/O completion or an event.
Show Answer & Explanation
Correct Answer: B — Mutex is binary, Semaphore can have count
Mutex is binary (locked/unlocked), Semaphore can have count > 1 for multiple resources.
Show Answer & Explanation
Correct Answer: B — Replaces oldest page
FIFO replaces the oldest page in memory (first in, first out).
Show Answer & Explanation
Correct Answer: B — Least recently used page
LRU replaces the page that has not been used for the longest time.
Show Answer & Explanation
Correct Answer: A — Paging
Internal fragmentation occurs in paging when allocated memory is larger than needed.
Show Answer & Explanation
Correct Answer: B — Variable/dynamic partitioning
External fragmentation occurs in variable partitioning when free memory is scattered.
Show Answer & Explanation
Correct Answer: C — FIFO
Belady's anomaly: FIFO may have more page faults with more frames.
Show Answer & Explanation
Correct Answer: B — Kernel has full access, User restricted
Kernel mode has full hardware access; User mode is restricted for protection.
Show Answer & Explanation
Correct Answer: B — Request OS services
System calls are the interface between user programs and operating system services.
Show Answer & Explanation
Correct Answer: B — Semaphores for synchronization
Producer-Consumer uses semaphores (empty, full, mutex) for proper synchronization.
Show Answer & Explanation
Correct Answer: B — Response time and context switches
Smaller quantum = better response time but more context switches; larger = opposite.