Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q781: If P2 requests one more instance of C, what happens to the system?
  • A: It recovers automatically
  • B: Deadlock occurs
  • C: It allocates more memory
  • D: It resets processes
View Answer
B

Q782: What processes are deadlocked if P2 requests an extra C?
  • A: P0 only
  • B: P0, P1, P2, P3
  • C: P1, P2, P3, P4
  • D: P2, P3, P4 only
View Answer
C

Q783: When should deadlock detection algorithm be invoked?
  • A: After every resource request
  • B: Periodically or based on CPU utilization
  • C: After system reboot
  • D: After program compilation
View Answer
B

Q784: Which method is NOT used to recover from a deadlock?
  • A: Process Termination
  • B: Resource Preemption
  • C: Resource Augmentation
  • D: Waiting forever
View Answer
D

Q785: One way to recover from a deadlock is to ______.
  • A: Allocate more resources
  • B: Abort deadlocked processes
  • C: Increase CPU speed
  • D: Decrease memory size
View Answer
B

Q786: In process termination, which strategy is NOT typically used?
  • A: Abort all deadlocked processes
  • B: Abort one process at a time
  • C: Abort only running processes
  • D: Abort processes one by one to break the cycle
View Answer
C

Q787: Deadlock is guaranteed to occur if ______.
  • A: All processes are preempted
  • B: Circular wait exists
  • C: Resources are allocated carefully
  • D: CPU utilization is low
View Answer
B

Q788: In deadlock detection, if Request[i] > Work for all i, what does it indicate?
  • A: No deadlock
  • B: All processes can complete
  • C: Potential deadlock
  • D: All resources are available
View Answer
C

Q789: What does Allocation[i][j] represent?
  • A: Number of free resources Rj
  • B: Number of resources Rj allocated to process Pi
  • C: Number of processes waiting for Rj
  • D: Number of instances of Pi
View Answer
B

Q790: Which of the following best describes Available vector?
  • A: Number of allocated resources
  • B: Number of free instances of each resource type
  • C: Number of deadlocked resources
  • D: Number of completed processes
View Answer
B

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now