Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q711: Starvation is a possible side effect of _______ protocols.
- A: Hold and Wait elimination
- B: Preemption
- C: Circular wait
- D: Deadlock avoidance
View Answer
A
Q712: If a system is in a safe state, then deadlock is _______.
- A: Certain
- B: Possible
- C: Impossible
- D: Immediate
View Answer
C
Q713: The resource allocation graph uses _______ edges to represent potential future requests.
- A: Request
- B: Assignment
- C: Claim
- D: Release
View Answer
C
Q714: Claim edges are represented by _______ lines.
- A: Solid
- B: Dashed
- C: Dotted
- D: Double
View Answer
B
Q715: If a process requests resources only when it has none, it is following which protocol?
- A: Preemption protocol
- B: Mutual exclusion protocol
- C: Hold and wait elimination
- D: Safe state protocol
View Answer
C
Q716: Deadlock recovery allows the system to enter deadlock and then _______.
- A: Ignore it
- B: Detect and recover
- C: Shutdown
- D: Restart
View Answer
B
Q717: In deadlock prevention, denying mutual exclusion is _______ for non-sharable resources.
- A: Possible
- B: Impossible
- C: Optional
- D: Easy
View Answer
B
Q718: The _______ condition must be prevented to avoid circular wait.
- A: Mutual exclusion
- B: Hold and wait
- C: No preemption
- D: Circular wait
View Answer
D
Q719: What is the first step when a resource request leads to unsafe state?
- A: Accept request
- B: Deny request
- C: Preempt process
- D: Restart process
View Answer
B
Q720: The system must avoid entering an _______ state to prevent deadlocks.
- A: Safe
- B: Unsafe
- C: Preempted
- D: Requested
View Answer
B