Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q491: The maximum number is chosen among _______ to assign a new ticket number in Bakery Algorithm.
- A: choosing array
- B: number array
- C: flag array
- D: turn variable
View Answer
B
Q492: The bakery algorithm was proposed by ___________.
- A: Edsger Dijkstra
- B: Leslie Lamport
- C: Donald Knuth
- D: John von Neumann
View Answer
B
Q493: Pakistan won the cricket world cup in ___________.
- A: 1987
- B: 1992
- C: 1999
- D: 2003
View Answer
B
Q494: In the critical section problem, processes must avoid _______.
- A: memory loss
- B: deadlock
- C: random execution
- D: CPU halt
View Answer
B
Q495: If both flag[j]=true and turn=j, the process Pi will _______.
- A: enter critical section immediately
- B: be stuck in while loop
- C: reset its flag
- D: jump to remainder section
View Answer
B
Q496: In Algorithm 3, if flag[j]=false, what happens?
- A: Pi can enter critical section
- B: Pi must wait
- C: Pi resets its flag
- D: Pi leaves CPU
View Answer
A
Q497: In the Bakery Algorithm, 'choosing[i]=true' indicates that _______.
- A: Process is exiting
- B: Process is choosing a number
- C: Process is in critical section
- D: Process is inactive
View Answer
B
Q498: When two processes have the same ticket number, priority is decided based on _______.
- A: CPU speed
- B: process ID
- C: memory usage
- D: arrival time
View Answer
B
Q499: The Bakery Algorithm ensures _________ wait among processes.
- A: unbounded
- B: random
- C: bounded
- D: infinite
View Answer
C
Q500: Bakery Algorithm is based on the scheduling algorithm used in _________.
- A: CPU scheduling
- B: bakeries
- C: parking lots
- D: airports
View Answer
B