Top 550+ Solved Operating System (OS) MCQ Questions Answer
Q. In the bounded buffer problem, there are the empty and full semaphores that
a. count the number of empty and full buffers
b. count the number of empty and full memory spaces
c. count the number of empty and full queues
d. none of the mentioned
Q. To ensure difficulties do not arise in the readers – writers problem are given exclusive access to the shared object.
a. readers
b. writers
c. readers and writers
d. none of the mentioned
Q. The dining – philosophers problem will occur in case of
a. 5 philosophers and 5 chopsticks
b. 4 philosophers and 5 chopsticks
c. 3 philosophers and 5 chopsticks
d. 6 philosophers and 5 chopsticks
Q. A deadlock free solution to the dining philosophers problem
a. necessarily eliminates the possibility of starvation
b. does not necessarily eliminate the possibility of starvation
c. eliminates any possibility of any kind of problem further
d. none of the mentioned
Q. A monitor is a type of
a. semaphore
b. low level synchronization construct
c. high level synchronization construct
d. none of the mentioned
Q. A monitor is characterized by
a. a set of programmer defined operators
b. an identifier
c. the number of variables in it
d. all of the mentioned
Q. A procedure defined within a can access only those variables declared locally within the and its formal parameters.
a. process, semaphore
b. process, monitor
c. semaphore, semaphore
d. monitor, monitor
Q. If no process is suspended, the signal operation
a. puts the system into a deadlock state
b. suspends some default process execution
c. nothing happens
d. the output is unpredictable
Q. A collection of instructions that performs a single logical function is called
a. only one process can be active at a time within the monitor
b. n number of processes can be active at a time within the monitor (n being greater than 1)
c. the queue has only one process in it at a time
d. all of the mentioned
Q. What are the operations that can be invoked on a condition variable?
a. wait & signal
b. hold & wait
c. signal & hold
d. continue & signal
Q. Which is the process of invoking the wait
a. transaction
b. operation
c. function
d. all of the mentioned
Q. Write ahead logging is a way
a. to ensure atomicity
b. to keep data consistent
c. that records data on stable storage
d. all of the mentioned
Q. The system periodically performs checkpoints that consists of the following operation(s)
a. putting all the log records currently in main memory onto stable storage
b. putting all modified data residing in main memory onto stable storage
c. putting a log record onto stable storage
d. all of the mentioned
Q. A locking protocol is one that
a. governs how locks are acquired
b. governs how locks are released
c. governs how locks are acquired and released
d. none of the mentioned
Q. The two phase locking protocol consists of
a. growing & shrinking phase
b. shrinking & creation phase
c. creation & growing phase
d. destruction & creation phase