wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

OS Sessional Test 2024 Batch (CS,DS,AI)

Total questions: 25

Worksheet time: 9mins

Name
Class
Date
1.
What is virtualization in operating systems?
a)
A technique to run multiple operating systems on a single physical machine
b)
A method to increase RAM capacity
c)
A process scheduling algorithm
d)
A file compression technique
2.
Which component is responsible for managing virtual machines?
a)
Operating System
b)
Hypervisor
c)
CPU
d)
RAM
3.
In FCFS scheduling, which process gets executed first?
a)
Process with highest priority
b)
Process with shortest burst time
c)
Process that arrives first
d)
Process with lowest process ID
4.
SJF scheduling selects the process with:
a)
Highest priority
b)
Longest burst time
c)
Shortest burst time
d)
First arrival time
5.
What type of scheduling is SJF?
a)
Preemptive only
b)
Non-preemptive only
c)
Both preemptive and non-preemptive
d)
Neither preemptive nor non-preemptive
6.
SRTF is the preemptive version of which algorithm?
a)
FCFS
b)
SJF
c)
Round Robin
d)
Priority Scheduling
7.
In Round Robin scheduling, what happens when a process's time quantum expires?
a)
Process terminates
b)
Process goes to waiting state
c)
Process is preempted and moved to ready queue
d)
Process priority is increased
8.
What is the key parameter in Round Robin scheduling?
a)
Priority level
b)
Burst time
c)
Time quantum
d)
Arrival time
9.
In Priority Scheduling, which process gets executed first?
a)
Process with lowest priority number
b)
Process with highest priority number
c)
Process that arrives first
d)
Process with shortest burst time
10.
What is the main problem with Priority Scheduling?
a)
Convoy effect
b)
Starvation
c)
High overhead
d)
Memory fragmentation
11.
How many queues are there in Multiple Queue Scheduling?
a)
1
b)
2
c)
Multiple (more than 2)
d)
Unlimited
12.
In Multilevel Feedback Queue, processes can:
a)
Move between queues
b)
Only stay in one queue
c)
Only move upward
d)
Only move downward
13.
What are the four necessary conditions for deadlock?
a)
Mutual exclusion, Hold and wait, No preemption, Circular wait
b)
FCFS, SJF, Priority, Round Robin
c)
Read, Write, Execute, Delete
d)
Process, Thread, Memory, CPU
14.
Which condition means a resource can be held by only one process at a time?
a)
Hold and wait
b)
No preemption
c)
Circular wait
d)
Mutual exclusion
15.
What does "Hold and wait" condition mean?
a)
Process holds resources while waiting for others
b)
Process waits without holding resources
c)
Process holds all resources at once
d)
Process doesn't wait for resources
16.
Which deadlock prevention method violates the "Hold and wait" condition?
a)
Request all resources at once
b)
Resource preemption
c)
Ordered resource allocation
d)
Banker's algorithm
17.
The Banker's Algorithm is used for:
a)
Deadlock prevention
b)
Deadlock avoidance
c)
Deadlock detection
d)
Deadlock recovery
18.
In Round Robin with time quantum = 2, if processes arrive with burst times [4,3,1], what is the completion order?
a)
P1, P2, P3
b)
P3, P2, P1
c)
P3, P1, P2
d)
P2, P3, P1
19.
If processes arrive at times [0,1,2] with burst times [3,2,1] using FCFS, which completes first?
a)
Process 1
b)
Process 2
c)
Process 3
d)
All complete simultaneously
20.
Which scheduling algorithm guarantees minimum average waiting time?
a)
FCFS
b)
SJF
c)
Round Robin
d)
Priority
21.
What happens in SRTF when a new process with shorter remaining time arrives?
a)
Nothing changes
b)
Current process is preempted
c)
New process waits
d)
Both processes run simultaneously
22.
What is a safe state in the context of deadlock?
a)
No processes are running
b)
All processes have completed
c)
System can allocate resources without deadlock
d)
All resources are free
23.
Resource allocation graph with a cycle indicates:
a)
Definite deadlock
b)
Possible deadlock
c)
No deadlock
d)
System crash
24.
Which is NOT a deadlock recovery method?
a)
Process termination
b)
Resource preemption
c)
Rollback
d)
Prevention
25.
In virtualization, what is a guest OS?
a)
The main operating system
b)
OS running inside virtual machine
c)
Hypervisor software
d)
Hardware abstraction layer