Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q531: In Algorithm 3, which data structures are used by cooperating processes?
- A: waiting and lock
- B: key and lock
- C: mutex only
- D: signal and wait
View Answer
A
Q532: The "TestAndSet" instruction must be executed ___________.
- A: slowly
- B: randomly
- C: atomically
- D: periodically
View Answer
C
Q533: In Algorithm 3, the critical section is entered when _______ becomes false.
- A: waiting[i]
- B: key
- C: lock
- D: both A and B
View Answer
D
Q534: In Algorithm 3, the value of 'key' becomes false by executing _______.
- A: Swap
- B: TestAndSet
- C: Semaphore
- D: Wait
View Answer
B
Q535: Which type of environment uses disabling interrupts for atomic execution?
- A: Multiprocessor
- B: Uniprocessor
- C: Distributed
- D: Cloud
View Answer
B
Q536: Semaphore is a(n) ________ variable used for synchronization.
- A: Boolean
- B: Character
- C: Integer
- D: Float
View Answer
C
Q537: In the classical definition of semaphore, "wait" operation was originally called _______.
- A: S
- B: P
- C: W
- D: V
View Answer
B
Q538: In the classical definition of semaphore, "signal" operation was originally called _______.
- A: S
- B: P
- C: W
- D: V
View Answer
D
Q539: Spinlocks are mainly useful when locks are held for _______.
- A: long times
- B: short times
- C: infinite times
- D: never
View Answer
B
Q540: Semaphore operations must be performed _______.
- A: individually
- B: atomically
- C: partially
- D: sequentially
View Answer
B