Font size
WorksheetsOperating System Sessional Exam
Total questions: 60
Worksheet time: 30mins
1. Without the Operating System the computer is useless
True
False
Which of these symbols represent UNIX?
The Operating System is a program that allows different ____________ and various pieces of hardware to _________with each other.
application, software
software , application
application , communicate
software, communicate
How can the OS help manage security of the system?
The OS can hire backup
User accounts may be password protected
Files can self destruct after a set time
A user process gets access to kernel through:
Interface
System Calls
Kernel
IPC
Race-Conditions can be overcome by:
System calls
Synchronization between applications
Interface
IPC
Which of the following is a component of OS?
System Call Interface
Device Drivers
Inter Process Communications
All of these
If one logs into the system as a guest user, the OS has to detect it and accordingly allow different resources to be accessed with permitted/limited privileges. This is called:
Security Assessment
Access Control
Security management
Synchronization
Given 5 memory partitions of 100kb, 500kb, 200kb, 300kb, 600kb (in order), how would the best fit algorithm place processes of size 212kb, 417kb, 112b, and 426kb (inorder)? The below show process->partition link mentioning allocation to that partition.
212kb -> 500kb
417kb -> 600kb
112kb ->288kb
426kb -> wait
212kb -> 600kb
417kb -> 500kb
112kb ->388kb
426kb -> wait
212kb -> 300kb
417kb -> 500kb
112kb ->200kb
426kb -> 600kb
212kb -> 300kb
417kb -> 500kb
112kb ->200kb
426kb -> 522kb
Concurrent access to shared data may result in _
data consistency
data insecurity
data inconsistency
None
A situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which access takes place is called ____________
data consistency
race condition
aging
starvation
What are the two kinds of semaphores?
mutex & counting
binary & counting
counting & decimal
decimal & binary
What is a mutex?
is a binary mutex
must be accessed from only one process
can be accessed from multiple processes
none of the mentioned
The bounded buffer problem is also known as ____________
Readers – Writers problem
Dining – Philosophers problem
Producer – Consumer problem
none
To ensure difficulties do not arise in the readers – writers problem _______ are given exclusive access to the shared object.
readers
writers
readers and writers
None
Processes have....
2 states
3 states
4 states
5 states
What is the ready state of a process?
a) when the process is scheduled to run after some execution
b) when the process is unable to run until some task has been completed
c) when process is using the CPU
none of the mentioned
The address of the next instruction to be executed by the current process is provided by the __________
CPU registers
Program counter
Process stack
Pipe
Which of the following is not the state of a process?
New
Old
Waiting
Running
What scheduling algorithm assigns the CPU
to the process with the highest priority?
FIFO
SJF non preemptive
SJF preemptive
priority
The interval from the line of submission of a process to the time of completion is termed as ____
waiting time
throughput
turnaround time
response time
Which algorithm is defined in Time quantum?
shortest job scheduling algorithm
round robin scheduling algorithm
priority scheduling algorithm
multilevel queue scheduling algorithm
In priority scheduling algorithm ____________
CPU is allocated to the process with highest priority
CPU is allocated to the process with lowest priority
Equal priority processes can not be scheduled
None of the mentioned
the process is swapped out of memory and later swapped into memory is done by
short term
medium term
long term
none
Which of the following condition is required for deadlock to be possible?
mutual exclusion
a process may hold allocated resources while awaiting assignment of other resources
no resource can be forcibly removed from a process holding it
all of the mentioned
A system is in the safe state if
the system can allocate resources to each process in some order and still avoid a deadlock
there exist a safe sequence
all of the mentioned
none of the mentioned
Which one of the following is the deadlock avoidance algorithm?
banker’s algorithm
round-robin algorithm
elevator algorithm
karn’s algorithm
A process said to be in ___________ state if it was waiting for an event that will never occur.
Safe
Unsafe
Starvation
Dead lock
A system has 12 magnetic tape drives and 3 processes : P0, P1, and P2. Process P0 requires 10 tape drives, P1 requires 4 and P2 requires 9 tape drives.
Process :P0 P1 P2
Maximum needs (process-wise: P0 through P2 top to bottom) :10 4 9
Currently allocated (process-wise)5 2 2
P0, P1, P2
P1, P2, P0
P2, P0, P1
P1, P0, P2
Only one thread at a time can use a resource
mutual exclusion
hold and wait
no preemption
CIRCULAR WAIT
When the OS is managing memory, SEGMENTATION uses:
Logical addressing
Physical addressing
What is the name used to describe what happens when idle processes are moved from the swap file, back to RAM?
Interrupt
Thrashing
Page In
Page Out
There are two types of optimisation techniques used by a OS, they are ...
Paging
Planning
Segmentation
Segregation
Paging ...
Splits programs into different sizes across memory
Splits programs into the same size across memory
Moves the data around
Allows data to be non-contiguously stored
Segmentation ...
Does not store items not currently in use into secondary storage
Splits programs into different sizes across memory
Moves the data around
Allows data to be contiguously stored
What does contiguous mean?
Data is split into random allocations
Data is stored randomly another
Data is illogically stored onto memory
Data is logically stored one after another
Disk thrashing is when ...
The memory controller spends too much time swapping between RAM and ROM
The memory controller spends too much time swapping between memory and virtual memory
The memory controller spends too much time swapping between the SSD and virtual memory
The memory controller spends too much time swapping between memory and RAM
Pages not currently in use can be stored on ...
RAM
SSD/HDD
Virtual memory
ROM
One technique for overcoming external fragmentation is __________ .
loading
compaction
relocation
partitioning
Select the type of CPU Scheduling showed in the Diagram A1 above.
Multilevel Feedback Queue
Multilevel Queue
Multilevel Memory Queue
Multilevel Ready Queue
Define the action that can prevent “no-preemption” deadlock condition?
A particular resource can only be requested when no others are being used
Release any resource already being used if the process can't get an additional resource
Assign number to the resources and only request in ascending order
Allow preemption
Select the CORRECT conditions for a deadlock to occur.
i.Mutual exclusion
ii.Hold-and-wait
iii.Wait-and-Interrupt
iv.No-preemption
i, ii and iii
i, ii and iv
i, iii and iv
ii, iii and iv
What do you call the main screen you see when your PC has finished booting up?
Desktop
File Explorer
Recycle bin
Folder
To organise our files, we use ....
Folders
Recycle Bin
Operating System
Files
Which of these is the file extension for a MS Office document?
.txt
.docx
.xlsx
.pptx
Which of these are file extensions for image files? (select ALL correct answers)
.jpg
.png
.mpg
.exe
.gif
_________________________configuration uses data striping techniques, where data is striped across all the disks within a RAID set.
RAID 0
RAID 1
RAID 2
RAID 3
In RAID, which level is not a fault tolerant?
Level 0
Level 3
Level 4
Level 5
RAID 1 is based on ________________ technique.
Striping
Mirroring
Parity
None of the above
In which RAID level using error correction mechanism with Hamming ECC to recover the data?
RAID 0
RAID 1
RAID 2
RAID 3
Consider the following sequence of page references:
1 2 3 4 4 2 1 4 1 3 4
Determine how many page faults will occur for the "FIFO" algorithms, assuming there are only "2 frames".
9 page faults
7 page faults
5 page faults
3 page faults
Consider the following sequence of page references:
7 0 1 2 0 3 0 4 2 3 0
Determine how many page faults will occur for the "FIFO" algorithms, assuming there are only "3 frames".
12 page faults
10 page faults
8 page faults
6 page faults
