Multiple Choice Questions
Multiple Choice Questions
Question 1
Question 2
Question 3
In a multithreaded system, what is the main advantage of using threads over processes?
Question 4
What is the term for the scenario where two or more processes wait indefinitely for resources held
by each other?
Option 1: Thrashing
Option 2: Deadlock
Question 5
Question 6
Which memory management scheme allows for a process to be divided into several pages?
Option 1: Paging
Option 2: Segmentation
Multiple Choice Questions
Question 7
Question 8
Question 9
Option 1: Mutexes
Option 2: Forking
Option 3: Paging
Option 4: Segmentation
Question 10
Question 11
Option 2: Preemption
Option 4: Starvation
Question 12
Multiple Choice Questions
Question 13
Which of the following memory allocation techniques suffers from external fragmentation?
Option 1: Paging
Option 2: Segmentation
Option 4: Swapping
Question 14
Option 4: Multithreading
Question 15
Which page replacement algorithm replaces the page that has been used the least recently?
Question 16
Question 17
Option 1: Journaling
Option 2: Log-structured
Option 3: Non-journaling
Multiple Choice Questions
Question 18
Question 19
Question 20
Which deadlock prevention method requires holding only one resource at a time?
Option 1: Wait-die
Option 3: No preemption
Question 21
Option 1: Windows
Multiple Choice Questions
Option 2: Linux
Option 4: MacOS
Question 22
Which of the following scheduling algorithms can lead to starvation if not properly implemented?
Question 23
Question 24
Question 25
Multiple Choice Questions
Which scheduling algorithm uses time slices to allocate CPU time to processes?
Question 26
Question 27
Question 28
processors?
Question 29
In the case of a race condition, which synchronization technique can prevent multiple threads from
Option 1: Semaphores
Option 2: Deadlocks
Option 3: Thrashing
Option 4: Paging
Question 30
Question 31
Question 32
Option 1: The system swaps the required page from disk into memory
Question 33
Which CPU scheduling algorithm could lead to a convoy effect, where all processes wait for one
Question 34
Question 35
Which of the following types of parallelism focuses on dividing a task into sub-tasks that are
executed simultaneously?
Question 36
Which of the following page replacement algorithms suffers from the Belady's anomaly?
Multiple Choice Questions
Question 37
Question 38
Multiple Choice Questions
Which of the following statements is true for the Best-Fit memory allocation strategy?
Option 1: It allocates the smallest available block of memory that is large enough for the process
Question 39
In which condition would the Least Recently Used (LRU) page replacement algorithm perform better
Question 40
Question 41
Which scheduling algorithm ensures that each process gets a fair share of CPU time?
Question 42
Question 43
Question 44
Question 45
Question 46
Question 47
In a system with a high level of thrashing, what is the most likely cause?
Question 48
Option 1: A section of code that can only be executed by one process at a time
Question 49
Question 50
Which type of memory allocation technique can suffer from external fragmentation?
Option 1: Paging
Option 2: Segmentation
Question 51
Multiple Choice Questions
Option 1: Running
Option 2: Blocked
Option 3: Ready
Option 4: Terminated
Question 52
Option 1: A system spends most of its time swapping pages, rather than executing processes
Question 53
Option 1: Processes must release all resources before requesting new ones
Option 2: No process should hold any resource while waiting for another one
Question 54
Question 55
Question 56
Which page replacement algorithm always evicts the page that will not be used for the longest
Question 57
Which type of memory allocation strategy places a new process in the smallest available memory
Option 1: First-Fit
Option 2: Best-Fit
Option 3: Worst-Fit
Option 4: Next-Fit
Question 58
Which of the following structures is essential for virtual memory management in paging?
Option 3: Scheduler
Question 59
Which scheduling algorithm is the most efficient for short, bursty jobs?
Question 60
Question 61
Question 62
Which of the following deadlock prevention methods allows a process to request resources only
Option 1: Wait-die
Option 4: No Preemption
Question 63
Option 2: Information that describes a file, such as its size, permissions, and creation date
Question 64
Multiple Choice Questions
Which page replacement algorithm evicts the page that was brought into memory the longest time
ago?
Question 65
Question 66
Question 67
Option 1: When the system needs to ensure fairness among all processes
Question 68
Question 69
Which condition must be met to detect a deadlock using the wait-for graph?
Option 2: There must be multiple processes waiting for the same resource
Question 70
Question 71
Which of the following techniques helps prevent a race condition in a multithreaded environment?
Question 72
Question 73
Question 74
Which type of file system structure is the most commonly used in modern operating systems?
Question 75
Question 76
Question 77
Multiple Choice Questions
Question 78
Question 79
Which memory management technique divides the memory into fixed-sized units?
Option 1: Segmentation
Option 2: Paging
Question 80
In a system with multiple threads, which of the following is a common problem related to shared
data?
Option 1: Deadlock
Option 3: Starvation
Option 4: Thrashing
Multiple Choice Questions
Question 81
Which of the following best defines the term 'context switch' in operating systems?
Question 82
Question 83
Question 84
Which page replacement algorithm is often considered the optimal solution, though impractical to
implement?
Question 85
Which of the following terms best describes the mechanism that guarantees no two processes can
Option 1: Deadlock
Option 3: Multithreading
Question 86
Option 2: Monitors
Option 3: Semaphores
Question 87
Option 1: Paging
Option 2: Segmentation
Question 88
Which scheduling algorithm is designed to give each process a small, fixed amount of CPU time in a
cyclic manner?
Multiple Choice Questions
Question 89
Question 90
Multiple Choice Questions
Question 91
Question 92
What is the main disadvantage of the 'First-In, First-Out' (FIFO) page replacement algorithm?
Question 93
Option 1: A situation where multiple threads access shared data simultaneously leading to
unpredictable results
Option 2: A condition where two threads wait for each other to release a resource
Question 94
Which of the following algorithms is used to avoid deadlock by ensuring safe resource allocation?
Option 3: FIFO
Question 95
In paging, which part of the virtual address is used as an index into the page table?
Question 96
Which type of operating system architecture is based on the concept of a 'virtual machine'?
Option 1: Monolithic OS
Option 2: Microkernel OS
Option 3: Layered OS
Option 4: VM-based OS
Question 97
Option 2: Paging
Multiple Choice Questions
Question 98
Question 99
Which of the following is a key advantage of the 'microkernel' architecture in operating systems?
Question 100
Question 101
Question 102
What is the main role of the 'fork()' system call in Unix-based systems?
Question 103
Multiple Choice Questions
Which of the following techniques is used to deal with thrashing in operating systems?
Question 104
In the context of operating systems, what does the term 'thrashing' refer to?
Question 105
What is the primary goal of the 'working set model' in memory management?
Question 106
Question 107
Option 1: fork()
Option 2: exec()
Option 3: kill()
Option 4: exit()
Question 108
Question 109
Which of the following is a key benefit of implementing multilevel feedback queue scheduling?
Question 110
Question 111
Option 1: A section of code where only one thread can execute at a time
Question 112
Question 113
Option 2: The maximum time a process can run before being swapped out
Question 114
Option 2: A low-priority task receiving more CPU time than a high-priority task
Question 115
Question 116
Multiple Choice Questions
Option 1: Pages are loaded into memory only when they are needed
Question 117
Which type of memory management involves dividing memory into fixed-size blocks?
Option 1: Segmentation
Option 2: Paging
Question 118
Question 119
Question 120
Which page replacement algorithm replaces the page that has been in memory the longest?
Question 121
Question 122
Question 123
Question 124
Option 1: Two processes competing for two resources without a defined order
Question 125
Question 126
What is the primary function of the 'exec()' system call in Unix-based systems?
Question 127
Question 128
Question 129
Multiple Choice Questions
Option 3: The operating system loads the page from disk into memory
Question 130
Which algorithm is used to ensure the most frequently used pages remain in memory?
Question 131
Option 2: Saving the state of a currently running process and loading the state of another
Question 132
Question 133
Question 134
Question 135
Option 3: To hold processes that are ready to run but not currently executing
Question 136
Option 2: Memory that loses its contents when power is turned off
Multiple Choice Questions
Question 137
Question 138
What type of deadlock prevention strategy allocates resources only if the process can obtain all
resources it needs?
Option 2: Preemption
Question 139
In multithreading, which term describes the situation where multiple threads execute
simultaneously?
Option 1: Concurrency
Option 2: Parallelism
Option 3: Synchronization
Question 140
Question 141
In the context of process scheduling, what does 'turnaround time' refer to?
Question 142
Multiple Choice Questions
Which of the following describes a situation in which a process cannot continue execution?
Option 3: Starvation
Option 4: Deadlock
Question 143
Question 144
Question 145
Which memory allocation technique is based on dividing memory into fixed-size partitions?
Option 1: Paging
Option 2: Segmentation
Question 146
Question 147
Option 3: The CPU state is saved and restored for a different process
Multiple Choice Questions
Question 148
Question 149
Question 150
Question 151
In operating systems, which type of scheduling algorithm assigns CPU time to processes based on
Question 152
Question 153
Question 154
Option 2: The process of saving the state of a CPU so that it can restore the state later
Question 155
Multiple Choice Questions
Which scheduling algorithm is designed to minimize the average waiting time for a set of processes?
Question 156
Question 157
Question 158
Question 159
Which memory allocation technique allows processes to be loaded into non-contiguous memory
blocks?
Option 2: Paging
Option 3: Segmentation
Question 160
In the context of operating systems, what does the term 'kernel' refer to?
Option 2: The central part of an operating system that manages system resources
Question 161
Question 162
synchronization?
Question 163
Question 164
Option 1: Processes that spend most of their time waiting for I/O operations to complete
Multiple Choice Questions
Question 165
What is the effect of the 'shortest remaining time first' (SRTF) scheduling algorithm?
Question 166
Question 167
In a paging system, what happens to a process when it tries to access a page that is not in
memory?
Option 2: A page fault occurs and the page is loaded from disk.
Question 168
Multiple Choice Questions
Question 169
Question 170
Question 171
Which of the following algorithms is used for page replacement when a page fault occurs?
Question 172
Question 173
Question 174
Question 175
Question 176
What is the primary purpose of the system call interface in an operating system?
Question 177
Option 2: The operating system can forcibly take control from a running process
Question 178
In a scenario where two processes are waiting indefinitely for each other to release resources, which
condition is present?
Option 1: Starvation
Option 2: Deadlock
Question 179
Question 180
Question 181
Multiple Choice Questions
Question 182
Option 1: Running
Option 2: Waiting
Option 3: Suspended
Option 4: Linked
Question 183
In a multilevel queue scheduling system, processes are divided into different queues based on what
criteria?
Question 184
Option 1: A process that spends most of its time waiting for I/O operations
Question 185
Which of the following algorithms uses a time quantum to allocate CPU time to processes?
Question 186
Question 187
Option 1: Two processes are waiting for each other to release resources.
Option 2: Multiple processes are competing for the same resource simultaneously.
Question 188
Question 189
Question 190
Option 2: The operating system can interrupt and switch between processes.
Question 191
Question 192
In a system using paging, which of the following best describes the term 'page table'?
Multiple Choice Questions
Question 193
Question 194
Multiple Choice Questions
Question 195
In a system that implements paging, which of the following is true regarding fragmentation?
Question 196
Question 197
Question 198
Question 199
Question 200
In a thread, which data structure is used to manage the state of the thread?