NSCT: Operating Systems MCQs — Computer Science (page 5)
111 multiple-choice questions on NSCT: Operating Systems from Computer Science, each with the correct answer and, where available, a teacher's explanation. Read through them to revise the chapter, then practise the same questions one by one to test yourself.
101. Processes arrive at time 0 in order with burst times P1 = 4, P2 = 7, P3 = 3, P4 = 2 ms. What is the average turnaround time under FCFS?
16 ms
11.25 ms
7.25 ms
8 ms
Answer: B) 11.25 ms
Explanation: Turnaround = waiting + burst for each process; average them. Lesson 9.2 · Operating Systems
102. Processes arrive at time 0 in order with burst times P1 = 3, P2 = 5, P3 = 2, P4 = 4 ms. Using Round Robin with a quantum of 2 ms, what is the average waiting time?
9 ms
5.25 ms
7 ms
4 ms
Answer: C) 7 ms
Explanation: Waiting times [6, 9, 4, 9] → average 7 ms. Lesson 9.2 · Operating Systems
104. Processes arrive at time 0 in the order P1, P2, …, with burst times P1 = 5, P2 = 8, P3 = 2, P4 = 4 ms. What is the average waiting time under FCFS?
13 ms
9.25 ms
4.75 ms
8.25 ms
Answer: D) 8.25 ms
Explanation: Waiting times [0, 5, 13, 15] → average 8.25 ms. Lesson 9.2 · Operating Systems
107. Processes arrive at time 0 in the order P1, P2, …, with burst times P1 = 8, P2 = 4, P3 = 9, P4 = 5 ms. What is the average waiting time under FCFS?
6.5 ms
16.75 ms
7.5 ms
10.25 ms
Answer: D) 10.25 ms
Explanation: Waiting times [0, 8, 12, 21] → average 10.25 ms. Lesson 9.2 · Operating Systems
110. Processes arrive at time 0 in order with burst times P1 = 4, P2 = 6, P3 = 2 ms. Using Round Robin with a quantum of 3 ms, what is the average waiting time?
8.67 ms
2.67 ms
4.67 ms
5.67 ms
Answer: D) 5.67 ms
Explanation: Waiting times [5, 6, 6] → average 5.67 ms. Lesson 9.2 · Operating Systems