Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q681: Starvation in dining philosophers means ________.
  • A: philosopher never gets to eat
  • B: philosopher sleeps
  • C: philosopher always eats first
  • D: philosopher eats once
View Answer
A

Q682: If all philosophers pick the right chopstick first, ________ occurs.
  • A: starvation
  • B: deadlock
  • C: parallelism
  • D: preemption
View Answer
B

Q683: In resource allocation graphs, what does an edge from Rj to Pi signify?
  • A: Pi waiting for Rj
  • B: Rj allocated to Pi
  • C: Pi denied Rj
  • D: Rj deleted by Pi
View Answer
B

Q684: A system model must satisfy ________ to ensure correct resource handling.
  • A: resource preemption
  • B: resource partition
  • C: process duplication
  • D: unlimited resource request
View Answer
B

Q685: System resources like CPU cycles and disk drives are examples of ________.
  • A: resource classes
  • B: instances
  • C: deadlocks
  • D: preemption
View Answer
A

Q686: The sequence used by a process when utilizing a resource is _______.
  • A: Use โ†’ Request โ†’ Release
  • B: Request โ†’ Use โ†’ Release
  • C: Release โ†’ Request โ†’ Use
  • D: Use โ†’ Release โ†’ Request
View Answer
B

Q687: In deadlock characterization, the "Hold and Wait" condition implies _______.
  • A: processes hold one resource only
  • B: processes wait without holding any resource
  • C: processes hold one and wait for others
  • D: processes release all resources while waiting
View Answer
C

Q688: The initial state of all philosophers in init() function is _______.
  • A: eating
  • B: thinking
  • C: hungry
  • D: waiting
View Answer
B

Q689: In the deadlock example with semaphores, which two semaphores are used?
  • A: A and C
  • B: A and B
  • C: B and D
  • D: A and D
View Answer
B

Q690: In the dining philosophers monitor code, the function pickup(int i) does what?
  • A: Releases chopsticks
  • B: Picks up one chopstick
  • C: Tries to eat or waits
  • D: Signals neighbor
View Answer
C

Test Your Knowledge

Take a timed quiz on Operating System

๐Ÿš€ Start Quiz Now