MCQ's For Operating Systems
MCQ's For Operating Systems
1. Which module gives control of the CPU to the process selected by the short-term scheduler?
a) dispatcher
b) interrupt
c) scheduler
d) none of the mentioned
2. The processes that are residing in main memory and are ready and waiting to execute are kept
on a list called
a) job queue
b) ready queue
c) execution queue
d) process queue
3. The interval from the time of submission of a process to the time of completion is termed as
a) waiting time
b) turnaround time
c) response time
d) throughput
4. Which scheduling algorithm allocates the CPU first to the process that requests the CPU first?
a) first-come, first-served scheduling
b) shortest job scheduling
c) priority scheduling
d) none of the mentioned
6. In priority scheduling algorithm, when a process arrives at the ready queue, its priority is
compared with the priority of
a) all process
b) currently running process
c) parent process
d) init process
13. The portion of the process scheduler in an operating system that dispatches processes is
concerned with :
a) assigning ready processes to CPU
b) assigning ready processes to waiting queue
c) assigning running processes to blocked queue
d) All of these
16. The strategy of making processes that are logically runnable to be temporarily suspended is
called :
a) Non preemptive scheduling
b) Preemptive scheduling
c) Shortest job first
d) First come First served
17. Scheduling is :
a) allowing a job to use the processor
b) making proper use of processor
c) Both a and b
d) None of these
18. There are 10 different processes running on a workstation. Idle processes are waiting for an
input event in the input queue. Busy processes are scheduled with the Round-Robin timesharing
method. Which out of the following quantum times is the best value for small response times, if
the processes have a short runtime, e.g. less than 10ms ?
a) tQ = 15ms
b) tQ = 40ms
c) tQ = 45ms
d) tQ = 50ms
19. Orders are processed in the sequence they arrive if _______ rule sequences the jobs.
a) earliest due date
b) slack time remaining
c) first come, first served
d) critical ratio
20. Which of the following algorithms tends to minimize the process flow time ?
a) First come First served
b) Shortest Job First
c) Earliest Deadline First
d) Longest Job First
21. Under multiprogramming, turnaround time for short jobs is usually ________ and that for long
jobs is slightly ___________.
a) Lengthened; Shortened
b) Shortened; Lengthened
c) Shortened; Shortened
d) Shortened; Unchanged
25. In interactive environments such as time-sharing systems, the primary requirement is to provide
reasonably good response time and in general, to share system resources equitably. In such
situations, the scheduling algorithm that is most popularly applied is ________.
a)Shortest Remaining Time Next (SRTN) Scheduling
b)Priority Based Preemptive Scheduling
c)Round Robin Scheduling
d) None of the above
29. In one of the deadlock prevention methods, impose a total ordering of all resource types, and
require that each process requests resources in an increasing order of enumeration. This
violates the _______________ condition of deadlock
a) Mutual exclusion
b) Hold and Wait
c) Circular Wait
d) No Preemption
31. In Priority Scheduling a priority number (integer) is associated with each process. The CPU is
allocated to the process with the highest priority (smallest integer = highest priority). The
problem of, Starvation? Low priority processes may never execute, is resolved by __________.
a) Terminating the process.
b) Aging
c) Mutual Exclusion
d) Semaphore
34. ________ Scheduler selects the jobs from the pool of jobs and loads into the ready queue.
a) Long term
b) Short term
c) Medium term
d) None of the above
35. Saving the state of the old process and loading the saved state of the new process is called
________.
a) Context Switch
b) State
c) Multi programming
d) None of the above
37. A thread
a)is a lightweight process where the context switching is low
b) is a lightweight process where the context switching is high
c) is used to speed up paging
d) none of the above
40. The program is known as _________ which interacts with the inner part of called kernel.
a) Compiler
b) Device Driver
c) Protocol
d) Shell
43. An optimal scheduling algorithm in terms of minimizing the average waiting time of a given set
of processes is ________.
a) FCFS scheduling algorithm
b) Round robin scheduling algorithm
c) Shortest job - first scheduling algorithm
d) None of the above
45. Which technique was introduced because a single job could not keep both the CPU and the I/O
devices busy?
a)Time-sharing
b) SPOOLing
c) Preemptive scheduling
d) Multiprogramming
48. Software is a program that directs the overall operation of the computer, facilitates its use and
interacts with the user. What are the different types of this software ?
a) Operating system
b) Language Compiler
c) Utilities
d) All of the above
49. A __________ is a software that manages the time of a microprocessor to ensure that all time
critical events are processed as efficiently as possible. This software allows the system activities
to be divided into multiple independent elements called tasks.
a) Kernel
b) Shell
c) Processor
d) Device Driver
51. With the round robin CPU scheduling in a time-shared system ________.
a) Using very large time slice degenerates in to first come first served algorithm
b) Using extremely small time slices improve performance
c) Using extremely small time slices degenerate in to last in first out algorithm
d) Using medium sized time slices leads to shortest request time first algorithm
56. Let S and Q be two semaphores initialized to 1, where P0 and P1 processes the following
statements wait(S);wait(Q); ---; signal(S);signal(Q) and wait(Q); wait(S);---;signal(Q);signal(S);
respectively. The above situation depicts a _________ .
a) Semaphore
b) Deadlock
c) Signal
d) Interrupt
59. The solution to Critical Section Problem is : Mutual Exclusion, Progress and Bounded Waiting.
a) The statement is false
b) The statement is true.
c) The statement is contradictory.
d) None of the above
61. The number of processes completed per unit time is known as __________.
a) Output
b) Throughput
c) Efficiency
d) Capacity
62. _________ is the situation in which a process is waiting on another process, which is also
waiting on another process ... which is waiting on the first process. None of the processes
involved in this circular wait are making progress.
a)Deadlock
b)Starvation
c)Dormant
d)None of the above