Operating System Objective Question with Answers

Questions
1 Fragmentation is
A fragments of memory words unused in a page
B fragments of memory words used in a page
C dividing the main memory into equal-sized fragments
D dividing the secondary memory into equal sized fragments

Answer: Option [A]
2 Critical region is
A the portion of the main memory which can be accessed only by one process at a time
B a part of the operating system which is not allowed to be accessed by any process
C a set of instructions that access common shared resource which exclude one another in time
D none of the above

Answer: Option [C]
3 In a time-sharing operating system, when the time slot given to a process is completed, the process goes from the RUNNING state to the
A READY state
B BLOCKED state
C TERMINATED state
D SUSPENDED state

Answer: Option [A]
4 Pre-emptive scheduling, is the strategy of temporarily suspending a running process
A when it requests (I/O)
B to allow starving processes to run
C before the CPU time slice expires
D none of the above

Answer: Option [C]
5 Some computer systems support dual mode operation—the user mode and the supervisor or monitor mode. These refer to the modes
A of memory access
B by which user programs handle their data
C by which the operating system executes user programs
D in which the processor and the associated hardware operate

Answer: Option [D]
6 In Round Robin CPU scheduling, as the time quantum is increased, the average turn around
A remains constant
B varies irregularly
C increases
D decrease

Answer: Option [B]
7 Suppose that a process is in ‘BLOCKED’ state waiting for some I/O service. When the service is completed, it goes to the
A RUNNING state
B READY state
C SUSPENDED state
D TERMINATED state

Answer: Option [B]
8 To obtain better memory utilization, dynamic loading is used. With dynamic loading a routine is not loaded until it is called for. For implementing dynamic loading,
A special support from operating system is essential
B special support from hardware is essential
C special support from both hardware and operating system are essential
D user programs can implement dynamic loading without any special support from the operating system or the hardware.

Answer: Option [D]
9 Semaphores are used to solve the problem of
A race condition
B mutual exclusion
C process synchronization
D Both (B) and (C)

Answer: Option [D]
10 Dijkstra’s banking algorithm in an operating system solves the problem of
A mutual exclusion
B context switching
C deadlock avoidance
D deadlock recovery

Answer: Option [C]

Useful Computer Science EBooks