Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q751: In the Banker’s example, how many resource types were there?
- A: Two
- B: Three
- C: Four
- D: Five
View Answer
B
Q752: In the example, how many processes (P0 to P4) were present?
- A: 3
- B: 4
- C: 5
- D: 6
View Answer
C
Q753: How many instances of resource A were available initially in the example?
- A: 10
- B: 5
- C: 7
- D: 3
View Answer
A
Q754: How many instances of resource C were initially available?
- A: 5
- B: 7
- C: 2
- D: 3
View Answer
B
Q755: The Need matrix is calculated by subtracting Allocation from ________.
- A: Available
- B: Max
- C: Work
- D: Request
View Answer
B
Q756: What is the Safe Sequence found in the example after running the Safety Algorithm?
- A: P0, P1, P2, P3, P4
- B: P1, P3, P4, P0, P2
- C: P1, P2, P0, P3, P4
- D: P4, P1, P2, P3, P0
View Answer
B
Q757: If a process requests more resources than declared in Max, the system should ________.
- A: Allocate
- B: Terminate process
- C: Raise an error
- D: Wait
View Answer
C
Q758: Banker’s algorithm is used for ________.
- A: Deadlock detection
- B: Deadlock avoidance
- C: Deadlock recovery
- D: Deadlock ignoring
View Answer
B
Q759: Banker’s algorithm guarantees that the system will never enter a(n) ________ state.
- A: Safe
- B: Unsafe
- C: Executable
- D: Schedulable
View Answer
B
Q760: The order of process termination in a safe state is called ________.
- A: Completion order
- B: Termination order
- C: Execution sequence
- D: Safe sequence
View Answer
D