Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q641: The consumer removes an item from the shared buffer when ________.
  • A: count = 0
  • B: count < n
  • C: count > 0
  • D: count > n
View Answer
C

Q642: In the producer's critical region, the buffer index 'in' is updated using which operation?
  • A: in = (in+1)%n
  • B: in = in-1
  • C: in = in+2
  • D: in = (in-1)%n
View Answer
A

Q643: In the consumer's critical region, the item is retrieved from ________.
  • A: pool[in]
  • B: pool[out]
  • C: pool[count]
  • D: pool[nextc]
View Answer
B

Q644: A monitor ensures that ________ process(es) can be active inside it at a time.
  • A: two
  • B: one
  • C: multiple
  • D: no
View Answer
B

Q645: Monitor local data can be accessed only through ________.
  • A: global access
  • B: external functions
  • C: programmer-defined operators
  • D: semaphores
View Answer
C

Q646: The syntax to declare a monitor begins with the keyword ________.
  • A: monitor
  • B: semaphore
  • C: buffer
  • D: mutex
View Answer
A

Q647: Monitors can solve synchronization problems better when used with ________.
  • A: mutex variables
  • B: semaphores
  • C: condition variables
  • D: global variables
View Answer
C

Q648: In monitors, a process invoking x.wait() will ________.
  • A: continue immediately
  • B: be suspended
  • C: terminate
  • D: execute signal
View Answer
B

Q649: The operation x.signal() in a monitor resumes ________.
  • A: all waiting processes
  • B: one suspended process
  • C: no process
  • D: two processes
View Answer
B

Q650: If no process is suspended, x.signal() has what effect?
  • A: Increments x
  • B: Terminates monitor
  • C: No effect
  • D: Destroys monitor
View Answer
C

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now