Font size
WorksheetsOperating Systems
Total questions: 185
Worksheet time: 3hrs 49mins
Which of these is not a function of an OS:
Provide a user interface
Communicate with hardware
Allow the computer to multi-task
Improves CPU performance
What do device drivers do?
Allows the OS to communicate with hardware
Drives around the motherboard
Increases the amount of storage
Which of these is an advantage to using a command-line interface over a GUI?
More interactive
Easier to use
Less resource heavy
What type of operating system is Windows 10?
Single-user OS
Multi-user OS
What do device drivers do?
Allows the OS to communicate with hardware
Drives around the motherboard
Increases the amount of storage
What type of operating system is Windows 10?
Single-user OS
Multi-user OS
The program in our operating system always deals with what address?
logical address
virtual address
both
neither
Click on all the examples of Operating Systems
Windows
iOS
Google Docs
To access the services of operating system, the interface is provided by the ___________
System calls
API
Library
Assembly instructions
The primary purpose of an operating system is:
To make the most efficient use of the computer hardware
To allow people to use the computer,
To keep systems programmers employed
To make computers easier to use
The strategy of allowing processes that are logically runnable to be temporarily suspended is called
preemptive scheduling
non preemptive scheduling
shortest job first
first come first served
Semaphores are used to solve
Deadlock
Mutual exclusion
Inter-process Communication
Messaging
Only the process executing the critical section is allowed access to the shared variable,all other processes should prevented from doing so until the completion of the critical section. This is often referred to as-
Mutual exclusion
semaphores
Deadlock
Interprocess communication
Banker’s algorithm is used as-
Deadlock occurrence method
Deadlock avoidance method
Deadlock detection method
Deadlock recovery method
The ability for a computer to execute more than one task simultaneously
multitasking
multiprogramming
multiprocessing
timesharing
The operating system is a type of
system software
general purpose software
utility software
application software
Which is not a process state?
waiting
terminated
blocked
redirected
A signal sent by a hardware or software to CPU indicating that something needs attention
disturbance
interrupt
waiting
exclusion
FCFS is operates similar to a
stack
sorting algorithm
circle
queue
What do device drivers do?
Allows the OS to communicate with hardware
Drives around the motherboard
Increases the amount of storage
What type of operating system is Windows 10?
Single-user OS
Multi-user OS
The program in our operating system always deals with what address?
logical address
virtual address
both
neither
Click on all the examples of Operating Systems
Windows
iOS
Google Docs
To access the services of operating system, the interface is provided by the ___________
System calls
API
Library
Assembly instructions
The primary purpose of an operating system is:
To make the most efficient use of the computer hardware
To allow people to use the computer,
To keep systems programmers employed
To make computers easier to use
The strategy of allowing processes that are logically runnable to be temporarily suspended is called
preemptive scheduling
non preemptive scheduling
shortest job first
first come first served
Semaphores are used to solve
Deadlock
Mutual exclusion
Inter-process Communication
Messaging
Only the process executing the critical section is allowed access to the shared variable,all other processes should prevented from doing so until the completion of the critical section. This is often referred to as-
Mutual exclusion
semaphores
Deadlock
Interprocess communication
Banker’s algorithm is used as-
Deadlock occurrence method
Deadlock avoidance method
Deadlock detection method
Deadlock recovery method
The ability for a computer to execute more than one task simultaneously
multitasking
multiprogramming
multiprocessing
timesharing
The operating system is a type of
system software
general purpose software
utility software
application software
Which is not a process state?
waiting
terminated
blocked
redirected
A signal sent by a hardware or software to CPU indicating that something needs attention
disturbance
interrupt
waiting
exclusion
FCFS is operates similar to a
stack
sorting algorithm
circle
queue
Which module gives control of the CPU to the process selected by the short-term scheduler?
dispatcher
interrupt
scheduler
NONE
The processes that are residing in main memory and are ready and waiting to execute are kept on a list called
job queue
READY queue
EXECUTE queue
DEVICE queue
The interval from the time of submission of a process to the time of completion is termed as
waiting time
turnaround time
response time
throughput
Which scheduling algorithm allocates the CPU first to the process that requests the CPU first?
first-come, first-served scheduling
shortest job scheduling
priority scheduling
none of the mentioned
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
Which algorithm is defined in Time quantum?
shortest job scheduling algorithm
round robin scheduling algorithm
priority scheduling algorithm
multilevel queue scheduling algorithm
Process are classified into different groups in ____________
shortest job scheduling algorithm
round robin scheduling algorithm
priority scheduling algorithm
multilevel queue scheduling algorithm
In multilevel feedback scheduling algorithm ____________
a process can move to a different classified ready queue
classification of ready queue is permanent
processes are not classified into groups
NONE
the process is swapped out of memory and later swapped into memory is done by
short term
medium term
long term
none
switching a process stores state into PCB and restore a state of different process is called as
Dispatching
context switching
demand paging
page fault
In this, the process that comes first will be executed first and next process starts only after the previous gets fully executed.
First-come, first-serve
Shortest-job-first scheduling
Round-robin scheduling
Priority scheduling
Multilevel Queue scheduling
This is scheduling policy that selects for execution the waiting process with the smallest execution time.
First-come, first-serve
Shortest-job first scheduling
Round-robin scheduling
Priority scheduling
Multilevel queue scheduling
It is a CPU Scheduling algorithm where each process is assigned a fixed time slot in a cyclic way.
First-come, first-serve
Shortest-job-first scheduling
Round-robin scheduling
Priority scheduling
Multilevel queue scheduling
The problem with round robin, SJF and STR is what?
They don't take into account priority
They all take too long
Short jobs will not be completed
Which of these is NOT an aim of the CPU scheduler
To maximise CPU time
Process as many jobs as possible
To complete jobs in at least 30 seconds
Which of these is a benefit of FCFS
Simple to implement
It considers priority
Long jobs will get completed eventually
Which algorithm is being described.."Long jobs might never get completed as short processes will always ‘jump the queue"
Round robin
FCFS
STR
Which algorithm is complicated to implement and might not look at small jobs
Multi-level feedback
Round robin
FCFS
If a CPU has the following:
Process A = 3 cycles
Process B = 2 cycles
Process C = 5 cycles
Which would implement 'B' the quickest?
Round robin (1 cycle time slice)
FCFS
STR
If a CPU has the following:
Process A = 3 cycles
Process B = 2 cycles
Process C = 5 cycles
Which would implement 'A' the quickest?
Round robin (2 cycles per timeslice)
FCFS
STR
SJF
Where does process management occur in a computer system?
Utilities
Operating system
The processes that are residing in main memory and are ready and waiting a execute are kept on a list called
job queue
ready queue
execution queue
process queue
The strategy of making processes that are logically runnable to be temporarily suspended is called :
Non preemptive scheduling
Preemptive scheduling
Shortest job first
First Come First Served
Process are classified into different groups in
shortest job scheduling algorithm
round robin scheduling algorithm
priority scheduling algorithm
multilevel queue scheduling algorithm
The interval from the time of submission of a process to the time of completion is termed as
waiting time
turnaround time
response time
throughput
Which scheduling algorithm allocates the CPU first to the process that requests the CPU first?
first-in, first-out scheduling
shortest job scheduling
priority scheduling
round robin scheduling
Time quantum is defined in
shortest job scheduling algorithm
round robin scheduling algorithm
priority scheduling algorithm
multilevel queue scheduling algorithm
Assuming the above process being scheduled with the SJF scheduling algorithm:
The waiting time for process D is 3 ms.
The waiting time for process D is 0 ms.
The waiting time for process D is 16 ms.
The waiting time for process D is 9 ms.
Assuming the above process being scheduled with the SJF scheduling algorithm:
The waiting time for process C is 3 ms.
The waiting time for process C is 0 ms.
The waiting time for process C is 16 ms.
The waiting time for process C is 9 ms.
What is the average waiting time for all of these processes with the SJF scheduling algorithm?
10.25 ms
7 ms
7.75 ms
10 ms
Which of the following scheduling algorithms gives minimum average waiting time?
FCFS
SJF
Round Robin
Priority
What scheduling algorithm assigns the CPU
to the process with the highest priority?
FIFO
SJF non preemptive
SJF preemptive
priority
Which Scheduling algorithm allocates the
CPU first to the process that requests CPU first?
First Come First serve scheduling
shortest job scheduling
priority scheduling
none of the mentioned
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
The processes that are residing in main memory and are ready and waiting to execute are kept on a list called:
job queue
ready queue
execution queue
process queue
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
CPU scheduling is the basis of ___________
multiprocessor systems
multiprogramming operating systems
larger memory sized systems
none of the mentioned
Scheduling is done so as to ____________
increase CPU utilization
decrease CPU utilization
keep the CPU more idle
none of the mentioned
What is Turnaround time?
the total waiting time for a process to finish execution
the total time spent in the ready queue
the total time spent in the running queue
the total time from the completion till the submission of a process
What is Waiting time?
the total time in the blocked and waiting queues
the total time spent in the ready queue
the total time spent in the running queue
the total time from the completion till the submission of a process
Round robin scheduling falls under the category of ____________
Non-preemptive scheduling
Preemptive scheduling
All of the mentioned
None of the mentioned
What is Scheduling?
allowing a job to use the processor
making proper use of processor
all of the mentioned
none of the mentioned
In multilevel feedback scheduling algorithm ____________
a process can move to a different classified ready queue
classification of ready queue is permanent
processes are not classified into groups
none of the mentioned
Which one of the following can not be scheduled by the kernel?
kernel level thread
user level thread
process
none of the mentioned
Process are classified into different groups in ____________
shortest job scheduling algorithm
shortest job scheduling algorithm
priority scheduling algorithm
multilevel queue scheduling algorithm
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, when a process arrives at the ready queue, its priority is compared with the priority of ____________
all process
currently running process
parent process
init process
The amount of time to execute a particular process is known as
Throughput
Turnaround Time
Waiting Time
Response Time
What is the full form of GUI ?
(a)
Give an example of single-user operating system
(a)
Give an example of multi-user operating system
(a)
Can a taskbar location be changed on the desktop ? Yes or No ?
(a)
The moving picture that you see on the desktop screen when it is not in use is called (a)
The process of loading the operating system is called (a)
The first screen that you see after you have logged in is called the (a)
The small pictures on the desktop are called (a)
The start button is present on the extreme (a) of the taskbar
When you click the start button a list of programes appears. This is called start (a)
The start menu has (a) power options
What is the graph used for deadlock identification
resource allocation graph
process allocation graph
thread allocation graph
instance allocation graph
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
Which of the following is not a necessary condition for deadlock?
Mutual Exclusion
Reentrancy
Hold and wait
No pre-emption
If any of the process is waiting for a long time then it is called as
Deadlock
semaphore
starvation
None
Only one thread at a time can use a resource
mutual exclusion
hold and wait
no preemption
CIRCULAR WAIT
If there is an edge from resource to process then we called that edge as
assignment edge
request edge
forward edge
back edge
If there is an edge from process to resource then we called that edge as
assignment edge
request edge
back edge
front edge
A set of process or thread waits for a resource which is held by another waiting process is called
Deadlock
starvation
synchronization
concurrency
Resources are released only voluntarily by the thread holding the resource, after thread is finished with it
mutual exclusion
hold and wait
no preemption
circular wait
Thread holding at least one resource is waiting to acquire additional resources held by other threads are called as
hold and wait
no preemption
circular wait
mutual exclusion
Paging is
contiguous memory allocation scheme
non contiguous memory allocation scheme
Segmentation is
contiguous memory allocation scheme
non contiguous memory allocation scheme
In paging physical memory is divided into partitions called--------
pages
frames
page table
Pages have
fixed and equal size
fixed and unequal size
variable and equal size
variable and unqual size
Page table stores the mapping between
pages and frames
process and PCB
frame and PCB
page and PCB
Paging suffers from
external fragmentation
internal fragmentation
In logical address to physical address translation if the page number is found in the TLB, then it is a
TLB hit
TLB miss
Segmentation uses
fixed size partitions
variable size partitions
Segmentation suffers from internal fragmentation.
True
False
Physical address calculation is done in segmentation with........
Page table
Segment table
__________ has the lowest fault rate of all the page replacement algorithms.
LRU
FIFO
Optimal
Counting based
In a optimal page replacement algorithm, when a page is to be replaced, which of the following pages is chosen?
oldest
newest
Frequently occurred page in the future
Not Frequently occurred page in the future
Which algorithm suffers from Belady's anomaly?
FIFO
Optimal
LRU
All of these
Replace the page that is not used for the longest period of time. This principle is adopted by ____________.
LRU
FIFO
MFU
LFU
A page fault occurs
when the process enters the ready state
when the process enters the blocked state
when the page is in the memory
when the page is not in the memory
Operating system supports different page replacement algorithms. From the given below option which is not a valid one?
Optimal
Currently used
LRU
FIFO
The least frequently used page replacement algorithm will select the page that
has been used for the longest time in the past.
has been used most number of times.
will not be used for the longest time in future.
has been used least number of times.
with demand paging a page of a process is brought into the main memory ...
when the execution of a process starts
when the process comes to the ready queue
when the page is required during execution
never bring a page to main memory
The valid/ invalid bit in the page table is set if
the page is present in the main memory
the page is not present in the main memory
page is not required
page is required
Virtual Memory can be implemented via
Paging
Segmentation
Segmentation with paging
demand paging
Page size 1024 bytes and process size is 72766 bytes , internal fragmentation is
962
62
72704
71
Page table is stored in
HDD
SSD
RAM
Processor
Access problem of Page table is solved by
Processor
RAM
TLB
Segmentation
Associative memory working under
Serial Search
Seqential search
Parellel Search
Sorted search
valid bit in page table indicates
associated page is in the process’ logical address space
the page is not in the process
One copy of read-only code used among processes called
private code
Shared code
Physical memory is broken into fixed-sized blocks called
backing store
Virtual memory
frames
pages
Every address generated by the CPU is divided into two parts. They are
frame bit & page number
page number & page offset
page offset & frame bit
frame offset & page offset
The __________ is used as an index into the page table.
frame offset
frame bit
page number
page offset
Paging increases the ______ time.
waiting
execution
context – switch
all of the mentioned
Smaller page tables are implemented as a set of _______
registers
counters
stacks
queues
----- is an interface between the user of a computer system and a computer hardware
Time management
Operating system
Process management
The term primary memory refers to
RAM and MMU
ROM
kernal
--- is used as backup medium for programs and data since the main memory is volatile
Secondary storage
primary memory
cache
---- is the core of the operating system and responsible for managing the system resources.
Kernel
core
OS
API stands for
Application programming Interface
Device driver interface
Operating system
The file management service of kernel is responsible for
Creation,deletion and alteration of files
saving of files in the secondary storage memory
both
--- deals with managing the process/tasks.
Time management
process management
I/O system management
---- is a collection of related information
file
project
system
---- interface is used to connect kernel service and underlying hardware
API
Device driver
system resource
What is the use of directory structure in the operating system?
The directory structure is used to solve the problem of the network connection in OS.
It is used to store folders and files hierarchically.
It is used to store the program in file format.
None
What type of memory stores data in a swap file on a hard drive?
Secondary memory
Virtual memory
Low memory
RAM
Which method is the best among file allocation methods?
Linked
Contiguous
Indexed
None
Which of the following is not a type of directory structure?
Acyclic-graph directory structure
Single-level directory structure
Tree directory structure
Stack directory structure
An un-interrupted unit is known as
Atomic
Single
Static
None
In the index allocation scheme of blocks to a file, the maximum possible size of the file depends on
the size of the blocks, and the size of the address of the blocks
the number of blocks used for the index, and the size of the blocks
the size of the blocks, the number of blocks used for the index, and the size of the address of the blocks
None
Which of the following page replacement algorithms suffers from Belady’s anomaly?
FIFO
SSTF
LRU
Optimal page replacement
Increasing the RAM of a computer typically improves performance because
Virtual memory increases
Larger RAMs are faster
Fewer page faults occur
Fewer segmentation faults occur
Page fault occurs when
When a requested page is in memory
When a requested page is not in memory
When a page is currupted
When an exception is thrown
Consider the virtual page reference string 1, 2, 3, 2, 4, 1, 3, 2, 4, 1 On a demand paged virtual memory system running on a computer system that main memory size of 3 pages frames which are initially empty. Let LRU, FIFO and OPTIMAL denote the number of page faults under the corresponding page replacements policy. Then
OPTIMAL < LRU < FIFO
OPTIMAL < FIFO < LRU
OPTIMAL = LRU
OPTIMAL = FIFO
Assume that there are 3 page frames which are initially empty. If the page reference string is 1, 2, 3, 4, 2, 1, 5, 3, 2, 4, 6, the number of page faults using the optimal replacement policy is
5
6
7
8
Consider a paging hardware with a TLB. Assume that the entire page table and all the pages are in the physical memory. It takes 10 milliseconds to search the TLB and 80 milliseconds to access the physical memory. If the TLB hit ratio is 0.6, the effective memory access time (in milliseconds) is
120
122
124
118
In a system with 32 bit virtual addresses and 1 KB page size, use of one-level page tables for virtual to physical address translation is not practical because of
the large amount of internal fragmentation
the large amount of external fragmentation
the large memory overhead in maintaining page tables
the large computation overhead in the translation process
Which of the following is not a form of memory?
instruction cache
instruction register
instruction opcode
translation lookaside buffer
Consider a system with byte-addressable memory, 32 bit logical addresses, 4 kilobyte page size and page table entries of 4 bytes each. The size of the page table in the system in megabytes is
2
4
8
16
Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB, 300 KB, and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?
200 KB and 300 KB
200 KB and 250 KB
250 KB and 300 KB
300 KB and 400 KB
Consider a fully associative cache with 8 cache blocks (numbered 0-7) and the following sequence of memory block requests: 4, 3, 25, 8, 19, 6, 25, 8, 16, 35, 45, 22, 8, 3, 16, 25, 7 If LRU replacement policy is used, which cache block will have memory block 7?
4
5
6
7
In which one of the following page replacement algorithms it is possible for the page fault rate to increase even when the number of allocated frames increases?
LRU
OPR
MRU
FIFO
Which of the following is major part of time taken when accessing data on the disk?
Settle time
Rotational latency
Seek time
Waiting time
Consider the 3 processes, P1, P2 and P3 shown in the table.
Process Arrival time Time Units Required
P1 0 5
P2 1 7
P3 3 4
The completion order of the 3 processes under the policies FCFS and RR2 (round robin scheduling with CPU quantum of 2 time units) are
FCFS: P1, P2, P3 RR2: P1, P2, P3
FCFS: P1, P3, P2 RR2: P1, P3, P2
FCFS: P1, P2, P3 RR2: P1, P3, P2
FCFS: P1, P3, P2 RR2: P1, P2, P3
