Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q791: If a system has multiple cycles in the resource graph, what does it mean?
- A: Single deadlock
- B: No deadlock
- C: Multiple possible deadlocks
- D: Safe state
View Answer
C
Q792: In the example, how many resources of type A were available initially?
- A: 7
- B: 2
- C: 6
- D: 0
View Answer
A
Q793: Which process had 0 allocation of A, B, and C initially?
- A: P0
- B: P1
- C: P2
- D: P4
View Answer
A
Q794: In the sequence <P0, P2, P3, P4, P1>, which process completes last?
- A: P0
- B: P1
- C: P2
- D: P3
View Answer
B
Q795: Which field in the deadlock detection algorithm is updated during step 3?
- A: Finish[i]
- B: Request[i]
- C: Available[i]
- D: Wait[i]
View Answer
A
Q796: If Request[i] is 0 for all resources, what can you conclude?
- A: Process is waiting
- B: Process is finished
- C: Process is deadlocked
- D: Process is holding resources
View Answer
B
Q797: In the example, what resource was requested more by P1?
- A: A
- B: B
- C: C
- D: Both A and C
View Answer
D
Q798: What should the system do if a deadlock is detected?
- A: Abort some processes
- B: Wait until resources are free
- C: Ignore it
- D: Shut down immediately
View Answer
A
Q799: The matrix showing currently allocated resources to each process is called ______.
- A: Request matrix
- B: Allocation matrix
- C: Finish matrix
- D: Work matrix
View Answer
B
Q800: What is the main purpose of memory management in a system?
- A: Ensure fair, secure, and efficient use of memory
- B: Manage CPU instructions
- C: Handle process scheduling
- D: Perform binary code execution
View Answer
A