Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q591: Spinlocks are effective when critical sections are held for ______ periods.
  • A: Long
  • B: Short
  • C: Infinite
  • D: Irregular
View Answer
B

Q592: Semaphore struct in code contains an int value and a pointer to ______.
  • A: Process structure
  • B: Semaphore lock
  • C: Critical section
  • D: Kernel memory
View Answer
A

Q593: When a blocked process is awakened, it moves to the ______ queue.
  • A: Waiting
  • B: Ready
  • C: Execution
  • D: Scheduling
View Answer
B

Q594: A process that is blocked must wait until another process executes ______ operation.
  • A: signal(S)
  • B: wait(S)
  • C: block()
  • D: wakeup()
View Answer
A

Q595: In a deadlock example, P0 waits for ______ and P1 waits for ______.
  • A: Q, S
  • B: S, Q
  • C: S, S
  • D: Q, Q
View Answer
A

Q596: Busy waiting is also called ______.
  • A: Sleeping
  • B: Spinning
  • C: Blocking
  • D: Scheduling
View Answer
B

Q597: What are the two types of semaphores?
  • A: binary and counting
  • B: mutex and counting
  • C: mutex and binary
  • D: shared and mutual
View Answer
A

Q598: In a binary semaphore, the maximum value allowed is ______.
  • A: 2
  • B: 1
  • C: 0
  • D: unlimited
View Answer
B

Q599: In a counting semaphore, the integer value can range over ______.
  • A: 0 and 1 only
  • B: unlimited range
  • C: negative values only
  • D: only positive numbers
View Answer
B

Q600: In bounded buffer problem, the semaphore 'empty' is initialized to _____.
  • A: 1
  • B: n
  • C: 0
  • D: -1
View Answer
B

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now