Top 550+ Solved Operating System (OS) MCQ Questions Answer
Q. Semaphore is a/an to solve the critical section problem.
a. hardware for a system
b. special program for a system
c. integer variable
d. none of the mentioned
Q. What are the two atomic operations permissible on semaphores?
a. wait
b. stop
c. hold
d. none of the mentioned
Q. What are Spinlocks?
a. cpu cycles wasting locks over critical sections of programs
b. locks that avoid time wastage in context switches
c. locks that work better on multiprocessor systems
d. all of the mentioned
Q. What is the main disadvantage of spinlocks?
a. they are not sufficient for many process
b. they require busy waiting
c. they are unreliable sometimes
d. they are too complex for programmers
Q. The wait operation of the semaphore basically works on the basic system call.
a. stop()
b. block()
c. hold()
d. wait()
Q. The signal operation of the semaphore basically works on the basic system call.
a. continue()
b. wakeup()
c. getup()
d. start()
Q. If the semaphore value is negative
a. its magnitude is the number of processes waiting on that semaphore
b. it is invalid
c. no operation can be further performed on it until the signal operation is performed on it
d. none of the mentioned
Q. The code that changes the value of the semaphore is
a. remainder section code
b. non – critical section code
c. critical section code
d. none of the mentioned
Q. What will happen if a non-recursive mutex is locked more than once?
a. starvation
b. deadlock
c. aging
d. signaling
Q. What is a semaphore?
a. is a binary mutex
b. must be accessed from only one process
c. can be accessed from multiple processes
d. none of the mentioned
Q. What are the two kinds of semaphores?
a. mutex & counting
b. binary & counting
c. counting & decimal
d. decimal & binary
Q. What is a mutex?
a. is a binary mutex
b. must be accessed from only one process
c. can be accessed from multiple processes
d. none of the mentioned
Q. Semaphores are mostly used to implement
a. system calls
b. ipc mechanisms
c. system protection
d. none of the mentioned
Q. The bounded buffer problem is also known as
a. readers – writers problem
b. dining – philosophers problem
c. producer – consumer problem
d. none of the mentioned