Professional Documents
Culture Documents
1) When a process switches from running to waiting state , When a process terminates
2) When a process switches from running to the ready state.
4) .1,2
Answer: 1
level:2
4) 2,3.
Answer: 4
level:2
3) ________________ gives control of the CPU to the process selected by the short term
Scheduler
3) Dispatcher
4) None
Answer: 3
Level:2
4) Which of the following are the functions of the dispatcher?
1) swapping
2) Jumping to the proper location in the user program to restart that program
3) Scheduling
Answer: 2
Level:2
5)Time taken by the dispatcher to stop one process and start another running is known as
__________
Level:2
1) CPU utilization
2) Waiting time
3) Dispatcher latency
4) 1,2
Answer: 4
Level:1
7) Which of the following is true for the algorithms for allocating regions of contiguous memory :
1. First-Fit
2. Next-Fit
3. Best-Fit
4. all the above
answer: 4
Level:2
2) Scan memory region list from point of last allocation to next fit
3) Tends to leave small unusable regions, and slower due to requirement of search the
entire list.
Answer: 1
Level:2
Answer: 2
Level:2
Answer: 4
Level:1
4) both 1 and 2
Answer: 4
Level:2
Answer: 1,2,3
Level:2
Answer : 2
Exp: acronym
Level:2
14) _________ systems are required to complete a critical task within a guaranteed amount of
time.
1) Real time
2) Networking systems
3) Distributed systems
Answer: 1
Level:1
15) The following are the criteria for CPU scheduling algorithm evaluation
1) Maximum CPU utilization under the constraint that maximum response time is one second
2) Maximum throughput such that turnaround time is (on an average) linearly proportional to
total execution time.
3) Both
4) None
Answer: 3
Level:1
16) The thread library schedules user level threads to run on an available Light wait process, this
scheme is known as ______________
2) Global Scheduling
3) CPU scheduling
4)None
Answer: 1
Level:2
17) The selected thread runs on the CPU until one of the following occurs
1) it blocks
Answer: 4
Level:2
18) In UNIX if multiple threads have the same priority, the scheduler uses _______
Answer: 3
Level:1
20)how system clock can be maintained correct time instead of disabling the interrupts.
1) keeping the disabling time for very short periods.
2) keeping one more system clock so that if one is disabled other works.
3) do not disable the interrupt.
4) None
Answer: 1
The system clock is updated at every clock interrupt. If interrupts
Were disabled—particularly for a long period of time—it is
Possible the system clock could easily lose the correct time
Level:1
21) Why Solaris, Windows XP, and Linux implement multiple locking mechanisms.
a) for more security
b) for application developer’s needs
c) both a and b
d) none
Answer: b
Exp: option b is more specific to the question rather than others
Level:1
Answer:1
Exp:as per def of adaptive mutex
Level:1
Answer: 2
Exp: Volatile storage refers to main and cache memory and is very
fast. However, volatile storage cannot survive system crashes or powering down the system.
Level: 1
Answer: 4
Exp: Non-volatile devices survive system crashes.Disks and tapes are examples of
nonvolatilestorage
Level:1
30) Checkpoint mechanism should be performed frequently when there are no failures?
True/false
Answer: false
Exp: If no failures occur, the system must incur the cost of performing checkpoints that are
Essentially unnecessary. In this situation, performing checkpoints less often will lead to better
system performance.
Level:1
31) In case of a system crash checkpoint occurrence should be done more frequently?
True/false?
Answer: true
Exp: checkpoint record means that an operation will not have to be
redone during system recovery. In this situation, the more often
checkpoints were performed, the faster the recovery time is from a
system crash.
Level :1
37) Some schedules are not possible under time-stamp protocol but not under two-phase locking
protocol.
True/false?
Answer: false
Exp: both cannot occur at a time
Level: 1
Step T0 T1 T2
1 Write(A)
2 Write(A)
3 Write(A)
4 Write(B)
5 Write(B)
40) We can use Simulations to get more accurate evaluation of scheduling algorithms.
True/False
Answer: True
Level:1
43) ____ is the state of processor, when a process is waiting for some event to occur.
1) ready state
2) wait state
3) dead state
4) None
Answer: 2
Level:1
44) In ________ scheduling technique, each process gets a small quantity of time and
then it is preempted and the next process gets to run
3) FCFS
Answer: 2
1) Non-mask able
2) Mask able
3) Both
4) None
Answer: 3
Depends on type of OS
Level:1
If the head is presently at 53rd cylinder, what will be the total number of
cylinders traversed if we are using FCFS disc scheduling algorithm.
1) 340
2) 440
3) 540
4) 640
Answer: 4
Level:1
If the head is initially at 53rd cylinder, what will be the total number of
cylinders traversed if we are using SSTF disc scheduling algorithm.
1) 156
2) 236
3) 366
4) 456
Answer: 2
Level:1
If the head is presently at 53rd cylinder, what will be the total number of
cylinders traversed if we are using SCAN disc scheduling algorithm.
1) 152
2) 252
3) 352
4) 462
Answer: 2
Level:1
If the head is presently at 53rd cylinder, what will be the total number of
cylinders traversed if we are using C-SCAN disc scheduling algorithm.
1) 182
2) 282
3) 382
4) 482
Answer: 3
Level;1
If the head is presently at 53rd cylinder, what will be the total number of
cylinders traversed if we are using C-LOOK disc scheduling algorithm.
1) 155
2) 255
3) 355
4) 455
Answer: 3
Level:1
51) In which disc scheduling algorithm the head traverses to the extreme end cylinders.
1) FCFS
2) SSTF
3) SCAN
4) C-LOOK
Answer: 3
Level:1
52)In which disc scheduling algorithm the head traverses to the nearest available
cylinder.
1) FCFS
2) SSTF
3) SCAN
4) C-LOOK
Answer: 2
53) In which disc scheduling algorithm the head traverses to the first cylinder
encountered in the given order.
1) FCFS
2) SSTF
3) SCAN
4) C-LOOK
Answer: 1
Level:1
54) In which disc scheduling algorithm the head traverses till one end then returns
directly to the other end before encountering any other cylinder.
1) FCFS
2) SSTF
3) C-SCAN
4) C-LOOK
Answer: 3
Level:1
1) Circular scan
2) Cylindrical scan
3) Constant scan
4) None
Answer: 1
Acronym
Level:1
P1 10 3 0
P2 1 1 2
P3 2 4 4
P4 1 5 3
P5 5 2 1
1) P1
2) P2
3) P3
4) P4
Answer: 2
Level:1
P1 10 3 0
P2 1 1 2
P3 2 4 4
P4 1 5 3
P5 5 2 1
1) P5
2) P2
3) P3
4) P4
Answer: 4
Level:1
P1 10 3 0
P2 1 1 2
P3 2 4 4
P4 1 5 3
P5 5 2 1
1) 9.6 sec
2) 10.6 sec
3) 11.6 sec
4) 12.6 sec
Answer: 2
Level:1
59) In priority scheduling (CPU scheduling)
P1 10 3 0
P2 1 1 2
P3 2 4 4
P4 1 5 3
P5 5 2 1
1) 4.8 sec
2) 5.8 sec
3) 6.8 sec
4) 5 sec
Answer: 3
Level:1
P1 10 3 0
P2 1 1 2
P3 2 4 4
P4 1 5 3
P5 5 2 1
The response time is________
1) 3.4 sec
2) 4.4 sec
3) 5.4 sec
4) 6.4 sec
Answer: 3
Level:1
61) Registers, Cache, Main memory are volatile storage devices. True/False
Answer: true
Level:1
P1 24 0
P2 3 0
P3 3 0
1) P1
2) P2
3) P3
4) P2 and P3
Answer: 2
Level:1
63) In round robin scheduling ( CPU scheduling) , time quantum=4 millisecs
P1 24 0
P2 3 0
P3 3 0
1) P1
2) P2
3) P3
4) P2 and P3
Answer: 1
Level:1
P1 24 0
P2 3 0
P3 3 0
1) 4 sec
2) 5 sec
3) 6 sec
4) 7 sec
Answer: 2
Level:1
P1 24 0
P2 3 0
P3 3 0
1) 12 sec
2) 13 sec
3) 14 sec
4) 15sec
Answer: 4
Level:1
P1 24 0
P2 3 0
P3 3 0
The response time for the given problem is _______.
1) 1 sec
2) 2 sec
3) 3 sec
4) 4 sec
Answer: 3
Level:1
P1 24 0
P2 3 0
P3 3 0
1) P1
2) P2
3) P3
4) P4
Answer: 2
Level:1
P2 3 0
P3 3 0
Answer: 2
Level:1
P1 6 1
P2 8 2
P3 7 3
P4 3 4
1) P1
2) P2
3) P3
4) P4
Answer: 1
Level:1
70) When does spinning on a lock (busy waiting, as opposed to blocking on the lock, and
being woken up when it's free) make sense in a multiprocessor environment?
1) when the average spin time spent spinning is less than the time spent
blocking the lock requester
2) switching to another process, switching back, and unblocking the lock
requester.
3) Both
4) None
Answer: 3
71) In which of the following scheduling schemes does context switching never take
place.
1) Round robin
2) SJF
3) FCFS
4) Priority
Answer: 3
Level:2
72) The time difference between job submission and job completion is known as _____.
2) SPOOL time
3) Waiting time
4) Expecting time
Answer: 1
Level:1
4) None
Answer: 1
Level:1
4) None.
Answer: 3
Level:1
75) In which of the following scheduling schemes does context switching never take
place.
1) Round robin
2) SJF
3) FCFS
4) Priority
Answer: 3
Level:1
76) In multilevel queue scheduling (CPU scheduling) arrange the following in the order
lowest to highest priority.
a) Interactive process
b) Batch process
c) System process
d) Student process
1) a, b, c, d
2) d, c, b, a
3) c, a, b, d
4) c, b, a, d
Answer: 3
Level:2
1) LIFO
2)FIFO
3) FCFS
4)SJF
Answer:2
Level:2
78)FCFS scheduling is the simplest algorithm, but it can cause short process to wait for very long
processes. True/False
Answer: True
Level:1
79) In which of the following scheduling schemes does context switching take place.
1) SJF
2) FCFS
3) Priority
4) both 1 and 3
Answer: 4
Level:1
1) SCAN
2) SJF
3) FCFS
4) Round robin
Answer: 1
81) Process A has arrived in the system by time 0 and requires 5 time units in the CPU, process B
has arrived by time 1 and requires 3 time units, process C has arrived by time 2 and requires 1
time unit. Assuming negligible processes switching time, and that all processes are CPU
bound and that a new quantum starts whenever a process finishes, the average time for
Round robin (Q=3) is ___________
1) 3.33
2) 2.33
3) 2.89
4) 4.67
Answer: 1
82) Which of the scheduling algorithm gives the minimum average waiting time for a given set of
processes?
1) FCFS
2) SJF
3) Round Robin
4) Priority
Answer: 2
1) Scheduling
2) Preemption
3) Dispatching
4) None
Answer: 2
84) Which of the following gives control of the CPU to the process selected by short term
scheduler?
1) Context switching
2) Thread
3) Interrupt
4) Dispatcher
Answer: 4
1) FCFS
2) Priority
3) Round Robin
4) SJF
Answer: 3
1) Preemption
2) Time Quantum
3) Non-preemption
4) Priority
Answer: 2
P1 : 6, P2 : 8 P3 : 7 P4 : 3.. The average turn around time if SJF is used is ____mille seconds
1) 7
2) 13
3) 19
4) 7.6
Answer: 2
88)Allocate the smallest hole that is big enough , is which type of fit in dynamic storage allocation
problem.
1) First fit
2) Best fit
3) Worst fit
4) None
Answer: 2
3) Multiprogramming
4) Time sharing
Answer: 4
1) Indefinite blocking
2) Takes large turnaround time
3) Deadlock occurs
Answer: 2
91)If the time quantum is very big in round robin CPU scheduling algorithm, then it acts as
1) SJF scheduling
2) FCFS
3) Priority
Answer: 2
Answer: 3
1) SJF
2) Round robin
3) Preemptive policy
4) None
Answer: 1
94)The hardware mechanism that enables a device to notify the CPU is called _______.
1) Interrupt
2) Polling
3) System call
4) None
Answer: 2
95)Round robin scheduling algorithm is suitable for Time sharing systems. True/ False
Answer: True
96)__________ selects the process from secondary storage and loads them into memory for
execution.
4) None
Answer: 3
97)To maximize CPU utilization and throughput we should maximize turnaround time and
minimize waiting time. True/ False?
Answer: False
Answer: False
1) FIFO
2) Shortest job first
3) Shortest remaining
4) FCFS
Ans: 1
100) If the Disk head is located initially at 32, find the number of disk moves
required with FCFS if the disk queues of I/O blocks requests are
98,37,14,124,65,67.
1) 310
2) 324
3) 315
4) 321
Ans:- (4)
1) Preemptive Scheduling
2) Non Preemptive Scheduling
3) Deadline Scheduling
4) Fair share scheduling
Ans: - 2
102) Using Priority Scheduling algorithm, find the average waiting time for
the following set of processes given with their priorities in the order: Process
: Burst Time : Priority respectively . P1 : 10 : 3 , P2 : 1 : 1 , P3 : 2 : 4 , P4 :
1 : 5 , P5 : 5 : 2.
1) 8 milliseconds
2) 8.2 milliseconds
3) 7.75 milliseconds
4) 3 milliseconds
Ans: 2
103) Which of the following disk scheduling techniques has a drawback of
starvation?
1) SCAN
2) SSTF
3) FCFS
4) LIFO
Ans:- 2
Ans: - 4
Ans: 4
1) Round robin
2) First-Come, First-Served scheduling
3) Multilevel feedback queue scheduling
4) Priority scheduling
Ans:- 3
107) If a new process arrives with CPU burst time less than remaining CPU burst
time of current executing process, preempt. This scheduling algorithm is known
as ____________.
1) Shortest-Job-First
2) Priority
3) FCFS
4) None of the above
Ans :- 1
1. Context Switch
2. Long, medium and short term scheduler
3. Dispatcher
4. Program Control
Ans:- 4
Ans:- ( 3)
Ans 4
1) Round robin
2) First-Come, First-Served scheduling
3) Multilevel feedback queue scheduling
4) Priority scheduling
Ans: - ( 3 )
112) In a process scheduling, the mechanism for scheduling and policy can be set
by _____________ and _____________ respectively.
1) Kernel & user process
2) User Process & threads
3) Shell & Kernel
4) Kernel & Threads
Ans:- 1
113) ________ scheduler selects the jobs from the pool of jobs and loads into
the ready queue.
1) Long term
2) Short term
3) Medium term
4) None of the above
Ans: - 1
114) Which one of the following is true for a CPU having a single interrupt request line and a single
interrupt grant line?
2) Vectored interrupts are not possible but multiple interrupting devices are possible
4) Vectored interrupt is possible but multiple interrupting devices are not possible
Answer: 2
115) Which of the process scheduling algorithm do you expect to produce the smallest
average waiting time
1) SJF
2) FCFS
3) round-robin
4) All the above
Answer:1
Level: 1
Where ‘n’ is the average queue length, ‘W’ is the time that a process waits
1) n=Lambda*W
2)n=Lambda/W
3)n=Lambda^W
4)n=Lambda*(W-n)
Answer:1
Exp: by def
Level:2
117) A CPU scheduling algorithm determines an order for the execution of its scheduled
processes. Given ‘n’ processes to be scheduled on one processor, how many possible different
schedules are there?
1) n!
2) n*n
3) 1
4) log n
Answer: 1
Level:2
122) Which scheduling policy is most suitable for a time shared operating systems?
1) SJF
2) RR
3) FCFS
4) Elevator
Answer:2
Level: 2
123) Scheduling is
1) allowing job to use the processor
2) unrelated to performance conditions
3) quite simple to implement, even on large frames
4) the same regardless of the purpose of the system
Answer:1
Level: 2