Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q741: What does the Available vector represent in Banker’s Algorithm?
- A: Remaining needs
- B: Allocated instances
- C: Unallocated resources
- D: Total maximum resources
View Answer
C
Q742: The Safety Algorithm checks whether a system is in a ________.
- A: Deadlock
- B: Safe state
- C: Unsafe state
- D: Partial state
View Answer
B
Q743: In the Safety Algorithm, Work vector is initialized as ________.
- A: Max matrix
- B: Allocation matrix
- C: Available vector
- D: Need matrix
View Answer
C
Q744: What must be true for Finish[i] for all i to determine if the system is safe?
- A: All Finish[i] = true
- B: All Finish[i] = false
- C: At least one Finish[i] = true
- D: All Finish[i] = undefined
View Answer
A
Q745: What happens if no process can satisfy Finish[i] = false and Need[i] <= Work?
- A: Continue checking
- B: Go to step 4
- C: System is safe
- D: Allocate resources immediately
View Answer
B
Q746: If Safety Algorithm finds that all Finish[i] are true, system is ________.
- A: Unsafe
- B: Deadlocked
- C: Safe
- D: Blocked
View Answer
C
Q747: In Resource Request Algorithm, if Request[i] > Need[i], what should the system do?
- A: Grant the request
- B: Raise an error
- C: Make a new claim
- D: Force release resources
View Answer
B
Q748: In Resource Request Algorithm, if Request[i] > Available, what happens?
- A: Allocate resources
- B: Wait
- C: Raise an error
- D: Finish the process
View Answer
B
Q749: After pretending to allocate requested resources, the system must invoke ________ to ensure safety.
- A: Banker’s Algorithm
- B: Safety Algorithm
- C: Deadlock Detector
- D: Resource Allocation Graph
View Answer
B
Q750: If Safety Algorithm after allocation returns unsafe, what should happen?
- A: Accept request
- B: Rollback allocation
- C: Raise an error
- D: Ignore request
View Answer
B