
Operating System Quiz 1
Authored by Shabnam Choudhary
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 2 pts
Calculate average waiting time using FCFS for P1(0,6), P2(2,8), P3(4,7), P4(5,3).
Answer explanation
FCFS Order: P1 (0–6), P2 (6–14), P3 (14–21), P4 (21–24). Waiting Times: P1: 0 ms P2: 6 - 2 = 4 ms P3: 14 - 4 = 10 ms P4: 21 - 5 = 16 ms Average: (0 + 4 + 10 + 16)/4 = 7.5 ms
2.
MULTIPLE CHOICE QUESTION
3 mins • 2 pts
In RR (quantum=4ms), P1(10ms), P2(5ms), P3(8ms). What is turnaround time for P3?
Answer explanation
Execution Order: T0–4: P1 (4ms done, 6ms left) T4–8: P2 (4ms done, 1ms left) T8–12: P3 (4ms done, 4ms left) T12–16: P1 (4ms done, 2ms left) T16–17: P2 (1ms done, finishes) T17–21: P3 (4ms done, finishes). P3 completes at T=21 ms.
3.
MULTIPLE CHOICE QUESTION
3 mins • 2 pts
SRTF Scheduling: Processes P1(0,7), P2(2,4), P3(4,1). Compute number of context switches.
Answer explanation
Execution Order: T0–2: P1 T2–4: P2 (preempts P1) T4–5: P3 (preempts P2, shortest remaining time) T5–8: P2 T8–14: P1 Context Switches: P1→P2, P2→P3, P3→P2, P2→P1 → 4 switches.
4.
MULTIPLE CHOICE QUESTION
3 mins • 3 pts
Priority Scheduling (Preemptive): P1(0,10,3), P2(2,5,1), P3(3,2,2). Compute average turnaround time.
Answer explanation
Execution Order: T0–2: P1 T2–7: P2 (higher priority, preempts P1) T7–9: P3 T9–19: P1 Turnaround Times: P1: 19 - 0 = 19 ms P2: 7 - 2 = 5 ms P3: 9 - 3 = 6 ms Average: (19 + 5 + 6)/3 = 10 ms
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
CPU spends 80% in user mode, 10% system calls, 5% I/O wait, 5% idle. CPU Utilization is?
Answer explanation
CPU Utilization = User Mode + System Calls = 80% + 10% = 90%. I/O wait and idle time are excluded.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which type of OS ensures critical tasks meet deadlines?
Answer explanation
Real-time OS guarantees timely execution for time-sensitive tasks.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is TRUE about Microkernel architecture?
Answer explanation
Microkernel minimizes kernel functionality (e.g., only IPC, scheduling), moving other services (e.g., drivers) to user space.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?