Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q581: Statement B in Pj executes only after statement A in Pi using _______.
  • A: Memory locks
  • B: Signal and wait on semaphore
  • C: Deadlock prevention
  • D: Resource pooling
View Answer
B

Q582: Deadlocks in real life can be seen in _______.
  • A: Database transactions
  • B: Traffic jams
  • C: Network protocols
  • D: Email communications
View Answer
B

Q583: What must happen when a process finishes executing a critical section?
  • A: Execute wait again
  • B: Execute signal operation
  • C: Execute block
  • D: Free memory
View Answer
B

Q584: The violation of mutual exclusion can be prevented by using ______ constructs.
  • A: Semaphore
  • B: Critical region
  • C: Database lock
  • D: Message passing
View Answer
B

Q585: In the wait operation, S.value is ______ before checking if it is less than 0.
  • A: Increased
  • B: Decreased
  • C: Multiplied
  • D: Cleared
View Answer
B

Q586: In a correct semaphore design, wait(S) and signal(S) must be used ______.
  • A: At random
  • B: Carefully and consistently
  • C: Only once
  • D: In isolation
View Answer
B

Q587: In deadlock, each process is waiting for ______.
  • A: CPU time
  • B: A resource held by another process
  • C: Memory allocation
  • D: Termination signal
View Answer
B

Q588: Semaphore 'signal' operation wakes up ______.
  • A: All processes
  • B: One blocked process
  • C: Random process
  • D: No process
View Answer
B

Q589: Starvation can be avoided by ensuring ______.
  • A: Limited resources
  • B: Fair resource allocation
  • C: Critical region violation
  • D: Semaphore value negative
View Answer
B

Q590: The struct for semaphore contains a value and ______.
  • A: Thread ID
  • B: List of processes
  • C: Memory block
  • D: CPU ID
View Answer
B

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now