Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q561: The "mutex" semaphore ensures _______.
  • A: Parallel processing
  • B: Data loss
  • C: Mutual exclusion
  • D: Memory sharing
View Answer
C

Q562: What is the main disadvantage of traditional semaphores?
  • A: High memory usage
  • B: Busy waiting
  • C: Complex syntax
  • D: Slow processing
View Answer
B

Q563: What is another name for a semaphore that causes busy waiting?
  • A: Deadlock
  • B: Starvation
  • C: Spinlock
  • D: Mutex
View Answer
C

Q564: Spinlocks are particularly useful in ______ systems.
  • A: Single-processor
  • B: Batch processing
  • C: Multiprocessor
  • D: Sequential
View Answer
C

Q565: In semaphores, busy waiting wastes which resource?
  • A: Memory
  • B: CPU cycles
  • C: Disk space
  • D: Network bandwidth
View Answer
B

Q566: The block operation places a process into _______.
  • A: Execution queue
  • B: Waiting queue
  • C: Memory pool
  • D: CPU register
View Answer
B

Q567: The wakeup operation changes the process state from ______ to ready.
  • A: Running
  • B: Waiting
  • C: Blocked
  • D: Terminated
View Answer
B

Q568: In the semaphore struct, 'value' represents _______.
  • A: CPU cycles
  • B: Queue length
  • C: Available resources
  • D: Program counter
View Answer
C

Q569: What is the correct initial value for a semaphore used to synchronize two processes?
  • A: 1
  • B: -1
  • C: 0
  • D: 2
View Answer
C

Q570: A negative value of the semaphore indicates ______.
  • A: Number of active processes
  • B: Number of processes waiting
  • C: Number of signals
  • D: CPU cycles wasted
View Answer
B

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now