Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q651: Signal operation on a condition variable differs from semaphore because it ________.
  • A: always increments
  • B: has no effect if no process is suspended
  • C: deletes the variable
  • D: creates a new monitor
View Answer
B

Q652: Dining Philosophers problem is an example of ________.
  • A: resource allocation problem
  • B: process scheduling problem
  • C: memory management problem
  • D: deadlock handling problem
View Answer
D

Q653: What kind of synchronization issue occurs if two fast philosophers repeatedly eat while others cannot?
  • A: Deadlock
  • B: Starvation
  • C: Race condition
  • D: Memory leak
View Answer
B

Q654: In critical regions, if two processes try to access v simultaneously, execution becomes ________.
  • A: parallel
  • B: random
  • C: sequential
  • D: deadlocked
View Answer
C

Q655: ________ is a synchronization primitive that requires processes to wait or signal around a shared variable.
  • A: Semaphore
  • B: Monitor
  • C: Buffer
  • D: Struct
View Answer
A

Q656: The expression used to define the bounded buffer struct is ________.
  • A: struct buffer {item pool[n]; int count,in,out;}
  • B: struct buffer (item pool[n]; count,in,out;)
  • C: buffer {item pool[n]; count,in,out;}
  • D: struct buffer {pool; in; out;}
View Answer
A

Q657: A process must execute ________ before entering a critical section.
  • A: signal(mutex)
  • B: wait(mutex)
  • C: check(mutex)
  • D: monitor(mutex)
View Answer
B

Q658: To leave a critical section, a process must execute ________.
  • A: wait(mutex)
  • B: signal(mutex)
  • C: monitor(mutex)
  • D: lock(mutex)
View Answer
B

Q659: ________ are errors caused due to improper usage of semaphores.
  • A: Syntax errors
  • B: Timing errors
  • C: Logical errors
  • D: Memory leaks
View Answer
B

Q660: The condition construct in monitors is defined by the keyword ________.
  • A: state
  • B: condition
  • C: signal
  • D: wait
View Answer
B

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now