Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q571: Busy-waiting semaphores are better for ______ critical sections.
  • A: Very long
  • B: Short
  • C: Infinite
  • D: Nested
View Answer
B

Q572: In wait operation, if S.value is less than 0, the process is ______.
  • A: Executed immediately
  • B: Blocked
  • C: Deleted
  • D: Duplicated
View Answer
B

Q573: In signal operation, if S.value is less than or equal to 0, a process is ______.
  • A: Terminated
  • B: Added to ready queue
  • C: Removed from CPU
  • D: Blocked again
View Answer
B

Q574: In coding with semaphores, which operation should be called after a successful execution of a critical section?
  • A: wait(S)
  • B: signal(S)
  • C: block()
  • D: wakeup()
View Answer
B

Q575: If two processes each hold a resource and wait for the other’s resource, it causes ______.
  • A: Starvation
  • B: Deadlock
  • C: Busy waiting
  • D: Spinlock
View Answer
B

Q576: Infinite blocking caused by unavailability of resources is called ______.
  • A: Deadlock
  • B: Starvation
  • C: Semaphore
  • D: Spinlock
View Answer
B

Q577: Which problem occurs when a process never gets access to the required resource?
  • A: Deadlock
  • B: Starvation
  • C: Deadlock and Starvation
  • D: Mutual Exclusion
View Answer
B

Q578: Violation of mutual exclusion occurs if two processes ______.
  • A: Block each other
  • B: Execute wait and signal incorrectly
  • C: Use spinlocks
  • D: Ignore wakeup signals
View Answer
B

Q579: Which structure contains the list of waiting processes in semaphore?
  • A: CPU
  • B: Memory
  • C: Semaphore struct
  • D: Disk
View Answer
C

Q580: In a spinlock, no _______ is required.
  • A: CPU
  • B: Context switch
  • C: Memory access
  • D: Semaphore
View Answer
B

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now