Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q661: In monitors, while one process is active, others ________.
- A: leave the monitor
- B: wait outside
- C: suspend themselves
- D: get terminated
View Answer
B
Q662: Deadlock prevention ensures that at least one of the necessary conditions for deadlock is ________.
- A: satisfied
- B: reinforced
- C: removed
- D: increased
View Answer
C
Q663: In monitors, the ________ rule applies to variables declared within functions.
- A: global
- B: local scope
- C: concurrent
- D: parallel
View Answer
B
Q664: A semaphore uses ________ operations for synchronization.
- A: wait and signal
- B: lock and unlock
- C: connect and disconnect
- D: fetch and update
View Answer
A
Q665: If the process waits outside the monitor due to a condition variable, what must happen for it to proceed?
- A: Signal is invoked
- B: Wait is reset
- C: Mutex is removed
- D: Deadlock occurs
View Answer
A
Q666: In monitor-based solution, a philosopher can pick up chopsticks only if _________.
- A: both are available
- B: one is available
- C: neighbor is hungry
- D: monitor allows
View Answer
A
Q667: In the dining philosophers problem, a philosopher's state can be _______.
- A: thinking, sleeping, eating
- B: thinking, hungry, eating
- C: eating, coding, sleeping
- D: eating, requesting, blocked
View Answer
B
Q668: In the code, how many condition variables are declared for philosophers?
- A: 2
- B: 3
- C: 4
- D: 5
View Answer
D
Q669: What operation must a philosopher call before eating in the monitor-based solution?
- A: putdown(i)
- B: pickup(i)
- C: eat(i)
- D: wait(i)
View Answer
B
Q670: In deadlock, which condition states a resource is held by one process at a time?
- A: Circular Wait
- B: No Preemption
- C: Hold and Wait
- D: Mutual Exclusion
View Answer
D