💻

Operating System MCQs

1K+ questions with answers

201

Each request requires that the system consider the _____________ to decide whether the current request can be satisfied or must wait to avoid a future possible deadlock.

a resources currently available
b processes that have previously been in the system
c resources currently allocated to each process
d future requests and releases of each process
Medium
View Details →
202

Given a priori information about the ________ number of resources of each type that maybe requested for each process, it is possible to construct an algorithm that ensures that the system will never enter a deadlock state.

a minimum
b average
c maximum
d approximate
Medium
View Details →
203

A deadlock avoidance algorithm dynamically examines the __________ to ensure that a circular wait condition can never exist.

a resource allocation state
b system storage state
c operating system
d resources
Medium
View Details →
204

A state is safe, if ____________

a the system does not crash due to deadlock occurrence
b the system can allocate resources to each process in some order and still avoid a deadlock
c the state keeps the system protected and safe
d all of the mentioned
Medium
View Details →
205

A system is in a safe state only if there exists a ____________

a safe allocation
b safe resource
c safe sequence
d all of the mentioned
Medium
View Details →
206

All unsafe states are ____________

a deadlocks
b not deadlocks
c fatal
d none of the mentioned
Medium
View Details →
207

If no cycle exists in the resource allocation graph ____________

a then the system will not be in a safe state
b then the system will be in a safe state
c all of the mentioned
d none of the mentioned
Medium
View Details →
208

The resource allocation graph is not applicable to a resource allocation system ____________

a with multiple instances of each resource type
b with a single instance of each resource type
c single & multiple instances of each resource type
d none of the mentioned
Medium
View Details →
209

The Banker’s algorithm is _____________ than the resource allocation graph algorithm.

a less efficient
b more efficient
c equal
d none of the mentioned
Medium
View Details →
210

The data structures available in the Banker’s algorithm are ____________

a Available
b Need
c Allocation
d All of the mentioned
Medium
View Details →
211

A system with 5 processes P0 through P4 and three resource types A, B, C have A with 10 instances, B with 5 instances, and C with 7 instances. At time t0, the following snapshot has been taken: Process P0 P1 P2 P3 P4 Allocation (process-wise : P0 through P4 top TO bottom) A B C 0 1 0 2 0 0 3 0 2 2 1 1 0 0 2 MAX (process-wise: P0 through P4 top TO bottom) A B C 7 5 3 3 2 2 9 0 2 2 2 2 4 3 3 Available A B C 3 3 2

a an unsafe state
b a safe state
c a protected state
d a deadlock
Medium
View Details →
212

The wait-for graph is a deadlock detection algorithm that is applicable when ____________

a all resources have a single instance
b all resources have multiple instances
c all resources have a single 7 multiple instances
d all of the mentioned
Medium
View Details →
213

An edge from process Pi to Pj in a wait for graph indicates that ____________

a Pi is waiting for Pj to release a resource that Pi needs
b Pj is waiting for Pi to release a resource that Pj needs
c Pi is waiting for Pj to leave the system
d Pj is waiting for Pi to leave the system
Medium
View Details →
214

If the wait for graph contains a cycle ____________

a then a deadlock does not exist
b then a deadlock exists
c then the system is in a safe state
d either deadlock exists or system is in a safe state
Medium
View Details →
215

If deadlocks occur frequently, the detection algorithm must be invoked ________

a rarely
b frequently
c rarely & frequently
d none of the mentioned
Medium
View Details →
216

What is the disadvantage of invoking the detection algorithm for every request?

a overhead of the detection algorithm due to consumption of memory
b excessive time consumed in the request to be allocated memory
c considerable overhead in computation time
d all of the mentioned
Medium
View Details →
217

A deadlock eventually cripples system throughput and will cause the CPU utilization to ______

a increase
b drop
c stay still
d none of the mentioned
Medium
View Details →
218

A computer system has 6 tape drives, with ‘n’ processes competing for them. Each process may need 3 tape drives. The maximum value of ‘n’ for which the system is guaranteed to be deadlock free is?

a 2
b 3
c 4
d 1
Medium
View Details →
219

A system has 3 processes sharing 4 resources. If each process needs a maximum of 2 units then, deadlock ____________

a can never occur
b may occur
c has to occur
d none of the mentioned
Medium
View Details →
220

‘m’ processes share ‘n’ resources of the same type. The maximum need of each process doesn’t exceed ‘n’ and the sum of all their maximum needs is always less than m+n. In this setup, deadlock ____________

a can never occur
b may occur
c has to occur
d none of the mentioned
Medium
View Details →
221

A deadlock can be broken by ____________

a abort one or more processes to break the circular wait
b abort all the process in the system
c preempt all resources from all processes
d none of the mentioned
Medium
View Details →
222

The two ways of aborting processes and eliminating deadlocks are ____________

a Abort all deadlocked processes
b Abort all processes
c Abort one process at a time until the deadlock cycle is eliminated
d All of the mentioned
Medium
View Details →
223

Those processes should be aborted on occurrence of a deadlock, the termination of which?

a is more time consuming
b incurs minimum cost
c safety is not hampered
d all of the mentioned
Medium
View Details →
224

The process to be aborted is chosen on the basis of the following factors?

a priority of the process
b process is interactive or batch
c how long the process has computed
d all of the mentioned
Medium
View Details →
225

Cost factors for process termination include ____________

a Number of resources the deadlock process is not holding
b CPU utilization at the time of deadlock
c Amount of time a deadlocked process has thus far consumed during its execution
d All of the mentioned
Medium
View Details →
226

If we preempt a resource from a process, the process cannot continue with its normal execution and it must be ____________

a aborted
b rolled back
c terminated
d queued
Medium
View Details →
227

If the resources are always preempted from the same process __________ can occur.

a deadlock
b system crash
c aging
d starvation
Medium
View Details →
228

What is the solution to starvation?

a the number of rollbacks must be included in the cost factor
b the number of resources must be included in resource preemption
c resource preemption be done instead
d all of the mentioned
Medium
View Details →
229

What is Address Binding?

a going to an address in memory
b locating an address with the help of another address
c binding two addresses together to form a new address in a different memory space
d a mapping from one address space to another
Medium
View Details →
230

Binding of instructions and data to memory addresses can be done at ____________

a Compile time
b Load time
c Execution time
d All of the mentioned
Medium
View Details →
231

If the process can be moved during its execution from one memory segment to another, then binding must be ____________

a delayed until run time
b preponed to compile time
c preponed to load time
d none of the mentioned
Medium
View Details →
232

What is Dynamic loading?

a loading multiple routines dynamically
b loading a routine only when it is called
c loading multiple routines randomly
d none of the mentioned
Medium
View Details →
233

What is the advantage of dynamic loading?

a A used routine is used multiple times
b An unused routine is never loaded
c CPU utilization increases
d All of the mentioned
Medium
View Details →
234

The idea of overlays is to ____________

a data that are needed at any given time
b enable a process to be larger than the amount of memory allocated to it
c keep in memory only those instructions
d all of the mentioned
Medium
View Details →
235

The ___________ swaps processes in and out of the memory.

a Memory manager
b CPU
c CPU manager
d User
Medium
View Details →
236

If a higher priority process arrives and wants service, the memory manager can swap out the lower priority process to execute the higher priority process. When the higher priority process finishes, the lower priority process is swapped back in and continues execution. This variant of swapping is sometimes called?

a priority swapping
b pull out, push in
c roll out, roll in
d none of the mentioned
Medium
View Details →
237

If binding is done at assembly or load time, then the process _____ be moved to different locations after being swapped out and in again.

a can
b must
c can never
d may
Medium
View Details →
238

In a system that does not support swapping ____________

a the compiler normally binds symbolic addresses (variables) to relocatable addresses
b the compiler normally binds symbolic addresses to physical addresses
c the loader binds relocatable addresses to physical addresses
d binding of symbolic addresses to physical addresses normally takes place during execution
Medium
View Details →
239

Which of the following is TRUE?

a Overlays are used to increase the size of physical memory
b Overlays are used to increase the logical address space
c When overlays are used, the size of a process is not limited to the size of the physical memory
d Overlays are used whenever the physical address space is smaller than the logical address space
Medium
View Details →
240

The address generated by the CPU is referred to as ____________

a Physical address
b Logical address
c Neither physical nor logical
d None of the mentioned
Medium
View Details →
241

The address loaded into the memory address register of the memory is referred to as ____________

a Physical address
b Logical address
c Neither physical nor logical
d None of the mentioned
Medium
View Details →
242

The run time mapping from virtual to physical addresses is done by a hardware device called the ____________

a Virtual to physical mapper
b Memory management unit
c Memory mapping unit
d None of the mentioned
Medium
View Details →
243

The base register is also known as the ____________

a basic register
b regular register
c relocation register
d delocation register
Medium
View Details →
244

The size of a process is limited to the size of ____________

a physical memory
b external storage
c secondary storage
d none of the mentioned
Medium
View Details →
245

If execution time binding is being used, then a process ______ be swapped to a different memory space.

a has to be
b can never
c must
d may
Medium
View Details →
246

The backing store is generally a ____________

a fast disk
b disk large enough to accommodate copies of all memory images for all users
c disk to provide direct access to the memory images
d all of the mentioned
Medium
View Details →
247

The ________ consists of all processes whose memory images are in the backing store or in memory and are ready to run.

a wait queue
b ready queue
c cpu
d secondary storage
Medium
View Details →
248

The _________ time in a swap out of a running process and swap in of a new process into the memory is very high.

a context – switch
b waiting
c execution
d all of the mentioned
Medium
View Details →
249

The major part of swap time is _______ time.

a waiting
b transfer
c execution
d none of the mentioned
Medium
View Details →
250

Swapping _______ be done when a process has pending I/O, or has to execute I/O operations only into operating system buffers.

a must
b can
c must never
d maybe
Medium
View Details →