A directory of Objective Type Questions covering all the Computer Science subjects.

1. 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.
a. 8 milliseconds
b. 8.2 milliseconds
c. 7.75 milliseconds
d. 3 milliseconds
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).8.2 milliseconds

2. A major problem with priority scheduling is _________.
a. Definite blocking
b. Starvation
c. Low priority
d. None of the above
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).Starvation

3. The host repeatedly checks if the controller is busy until it is not. It is in a loop that status register's busy bit becomes clear. This is called _____________ and a mechanism for the hardware controller to notify the CPU that it is ready is called ___________.
a. Interrupt and Polling
b. Polling and Spooling
c. Polling and Interrupt
d. Deadlock and Starvation
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).Polling and Interrupt

4. 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. Shorest job - first scheduling algorithm
d. None of the above
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).Shorest job - first scheduling algorithm

5. 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 of low priority processes may never execute, is resolved by __________.
a. Terminating the process
b. Aging
c. Mutual Exclusion
d. Semaphore
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).Aging

6. CPU performance is measured through ________.
a. Throughput
b. MHz
c. Flaps
d. None of the above
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).Throughput

Page 1 of 19

copyright 2016 computer science bitsCompscibits.com