Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q611: In the first readers-writers problem, priority is given to ______.
  • A: writers
  • B: readers
  • C: both equally
  • D: mutex
View Answer
B

Q612: In second readers-writers problem, priority is given to ______.
  • A: writers
  • B: readers
  • C: mutex
  • D: semaphore
View Answer
A

Q613: In Dining Philosophers Problem, philosophers share ______.
  • A: books
  • B: chairs and bowls
  • C: tables and chopsticks
  • D: computer systems
View Answer
C

Q614: Each chopstick in Dining Philosophers Problem is represented by a ______.
  • A: buffer
  • B: semaphore
  • C: lock
  • D: queue
View Answer
B

Q615: In Dining Philosophers Problem, deadlock can happen when ______.
  • A: one philosopher is eating
  • B: all philosophers pick up their left chopstick first
  • C: philosophers talk to each other
  • D: all philosophers sleep
View Answer
B

Q616: The wait operation is used to ______ a chopstick.
  • A: release
  • B: grab
  • C: destroy
  • D: reset
View Answer
B

Q617: The signal operation is used to ______ a chopstick.
  • A: grab
  • B: pick up
  • C: release
  • D: drop
View Answer
C

Q618: A solution of Dining Philosophers Problem must avoid ______ and ______.
  • A: Deadlock and starvation
  • B: Full and empty
  • C: Producer and consumer
  • D: Mutex and semaphores
View Answer
A

Q619: The Dining Philosophers Problem is a classic example of ______.
  • A: Producer Consumer problem
  • B: Resource allocation problem
  • C: Buffer management problem
  • D: Semaphore counting problem
View Answer
B

Q620: wait(mutex); readcount++; if(readcount == 1) wait(wrt); signal(mutex); is the code for ______.
  • A: writer entry
  • B: reader entry
  • C: writer exit
  • D: reader exit
View Answer
B

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now