wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

OSS (QUIZ 4) CPU Scheduling Quiz

Total questions: 30

Worksheet time: 23mins

Name
Class
Date
1.

What is the primary goal of CPU scheduling?

a)

Minimize CPU usage

b)

Maximize turnaround time

c)

Ensure all processes finish at the same time

d)

Minimize response time

2.

Which CPU scheduling algorithm selects the process that arrives first?

a)

Round Robin

b)

Shortest Job Next

c)

First-Come, First-Served

d)

Priority Scheduling

3.

In Round Robin (RR) scheduling, what does the time quantum represent?

a)

Maximum execution time per process cycle

b)

The total time all processes get to run

c)

The priority of each process

d)

The waiting time for the longest process

4.

Which scheduling algorithm always selects the process with the shortest burst time?

a)

First-Come, First-Served

b)

Shortest Remaining Time First

c)

Round Robin

d)

Priority Scheduling

5.

Which scheduling algorithm prevents starvation by aging lower-priority processes?

a)

First-Come, First-Served

b)

Shortest Job Next

c)

Priority Scheduling

d)

Multilevel Queue Scheduling

6.

What happens in Preemptive Scheduling?

a)

A process runs until it voluntarily releases the CPU

b)

A higher-priority process can interrupt a running process

c)

Only background processes are scheduled

d)

CPU scheduling is disabled

7.

Which of the following is a disadvantage of First-Come, First-Served (FCFS)?

a)

Causes starvation

b)

Complex implementation

c)

High average waiting time for large processes

d)

Requires multiple queues

8.

What is the major advantage of Shortest Job Next (SJN) scheduling?

a)

Maximizes response time

b)

Reduces average waiting time

c)

Ensures fair process execution

d)

Always prevents starvation

9.

Which scheduling algorithm is commonly used in time-sharing systems?

a)

First-Come, First-Served

b)

Shortest Job Next

c)

Round Robin

d)

Priority Scheduling

10.

Which metric measures the time a process spends waiting in the ready queue?

a)

Turnaround Time

b)

Response Time

c)

Waiting Time

d)

Completion Time

11.

CPU scheduling only applies to multiprogramming systems.

a)

TRUE

b)

FALSE

12.

Round Robin scheduling is ideal for real-time systems.

a)

TRUE

b)

FALSE

13.

Shortest Job Next (SJN) can cause starvation of long processes.

a)

TRUE

b)

FALSE

14.

Response time is always greater than or equal to waiting time.

a)

TRUE

b)

FALSE

15.

In a preemptive system, a process can be interrupted before completion.

a)

TRUE

b)

FALSE

16.

Turnaround time is the sum of waiting time and burst time.

a)

TRUE

b)

FALSE

17.

The dispatcher is responsible for selecting a process from the ready queue.

a)

FASLE

b)

TRUE

18.

A high-priority process in Priority Scheduling always executes before a lower-priority one.

a)

FALSE

b)

TRUE

19.

Multilevel Queue Scheduling divides processes into multiple priority queues.

a)

FALSE

b)

TRUE

20.

First-Come, First-Served scheduling is the simplest but often inefficient.

a)

TRUE

b)

FALSE

21.

A process arrives at time 0 and has a burst time of 5. If it starts execution immediately, what is its Turnaround Time?

(a)  

22.

A process arrives at time 3, starts execution at 5, and finishes at 10. What is its Waiting Time?

(a)  

23.

A process has a burst time of 10 and a waiting time of 5. What is its Turnaround Time?

(a)  

24.

A Round Robin system has a time quantum of 4. If a process has a burst time of 10, how many cycles will it take?

(a)  

25.

If four processes (P1, P2, P3, P4) have burst times 3, 6, 4, and 5 and are scheduled using FCFS, what is the waiting time of P3?

(a)  

26.

Calculate Response Time if a process arrives at 2, starts execution at 7.

(a)  

27.

A process has a turnaround time of 12 and a burst time of 8. What is its waiting time?

(a)  

28.

A process arrives at time 2 and completes execution at time 15. Its turnaround time is 13. What is its arrival time?

(a)  

29.

In a non-preemptive SJF scheduling, what is the first process to execute if burst times are P1 = 8, P2 = 4, P3 = 2, and P4 = 5?

(a)  

30.

A process starts execution at 3, completes at 12, and has a response time of 2. What is its arrival time?

(a)