Home »
MCQs
Operating System MCQs
Operating System MCQs: This section contains multiple-choice questions on Operating System. All MCQs have the correct answers and explanations. These MCQs will help students and professionals to test their skills and to enhance their knowledge of Operating System.
List of Operating System MCQs
1. An operating system is ____ which performs the entire basic task like file management, process management, etc.
- Software
- Program
- Process
- Thread
Answer: A) Software
Explanation:
An operating system is a software that performs all the basic tasks like file management, process management, etc.
Discuss this Question
2. How many types of the operating system are there?
- 3
- 8
- 7
- 6
Answer: C) 7
Explanation:
Mainly there are 7 types of operating systems: Batch OS, Multitasking OS, Multiprocessing OS, Real-time OS, Distributed OS, Network OS, and mobile OS.
Discuss this Question
3. Which of the following is the feature of the operating system?
- Error detection aids
- Control over system performance
- Job Accounting
- Coordination between other software and users
- All of the above
Answer: E) All of the above
Explanation:
Error detection aids, Control over system performance, Job accounting, Coordination between other software and users, Process management, Memory management, etc are some of the common features of the operating system.
Discuss this Question
4. Which of the following operating system does not interact with the computer directly, in fact in this operating system each user prepares his job in an offline device and submits it to the computer?
- Batch Operating system
- Multitasking Operating System
- Time-sharing Operating System
- Distributed Operating System
Answer: A) Batch Operating system
Explanation:
Batch Operating system does not interact with the computer directly, in fact in this operating system each user prepares his job in an offline device like a punch card and submits it to the computer.
Discuss this Question
5. ____ Operating system is a technique that enables many people, located at various terminals, to use a particular computer system at the same time?
- Batch Operating system
- Multitasking Operating System
- Time-sharing Operating System
- Distributed Operating System
Answer: C) Time-sharing Operating System
Explanation:
Time-sharing Operating System is a technique that enables many people, located at various terminals, to use a particular computer system at the same time; it is shared among different users.
Discuss this Question
6. Which of the following is not a feature of the batch Operating system?
- Large turnaround time
- It is very easy to debug the program in this operating system
- Other pending jobs are affected due to a lack of protection schemes
Answer: B) It is very easy to debug the program in this operating system
Explanation:
No, in the batch OS it is very difficult to debug the program.
Discuss this Question
7. What is the main difference between batch Operating systems and time-sharing Operating systems?
- In a multi-programmed batch system, the objective is to minimize processor use, whereas, in time-sharing systems, the objective is to maximize response time
- In a multi-programmed batch system, the objective is to maximize processor use, whereas, in time-sharing systems, the objective is to minimize response time
Answer: B) In a multi-programmed batch system, the objective is to maximize processor use, whereas, in time-sharing systems, the objective is to minimize response time
Explanation:
In a multi-programmed batch system, the objective is to maximize processor use, whereas, in time-sharing systems, the objective is to minimize response time.
Discuss this Question
8. Among the Batch operating system and time-sharing operating system, which operating system reduces the CPU idle time?
- Batch Operating System
- Time-sharing Operating Systems
Answer: B) Time-sharing Operating Systems
Explanation:
In Timesharing Operating Systems, CPU idle time is reduced as it provides a quick response, whereas in batch OS CPU is often idle.
Discuss this Question
9. Which of the following Operating systems use multiple central processors to serve multiple real-time applications and multiple users?
- Batch Operating system
- Multitasking Operating System
- Time-sharing Operating System
- Distributed Operating System
Answer: D) Distributed Operating System
Explanation:
Distributed Operating systems use multiple central processors to serve multiple real-time applications and multiple users.
Discuss this Question
10. Which of the following Operating systems runs on a server and provides the server the capability to manage data, users, groups, etc?
- Batch Operating system
- Network operating system
- Mobile Operating system
- Real-time Operating system
Answer: B) Network operating system
Explanation:
Network Operating System runs on a server and provides the server the capability to manage data, users, groups, security, applications, and other networking functions.
Discuss this Question
11. Which of the following is not a network operating system?
- Mac OS X
- Novell Netware
- BSD
- Oracle
Answer: D) Oracle
Explanation:
Oracle is not a network operating system.
Discuss this Question
12. In which of the following Operating systems the response time is very less as compared to online processing?
- Batch Operating system
- Network operating system
- Mobile Operating system
- Real-time Operating system
Answer: D) Real-time Operating system
Explanation:
In a real-time Operating system the response time is very less as compared to online processing.
Discuss this Question
13. How many types of real-time Operating systems are there?
- 3
- 2
- 5
- 6
Answer: B) 2
Explanation:
There are two types of real-time Operating Systems: Hard real-time systems, and soft real-time systems.
Discuss this Question
14. In which real-time Operating system, secondary storage is limited or missing and the data is stored in ROM?
- Hard real-time systems
- The soft real-time system
Answer: A) Hard real-time systems
Explanation:
In a hard real-time system, secondary storage is limited or missing and the data is stored in ROM, moreover in these systems virtual memory is never found.
Discuss this Question
15. What is a bootstrap program?
- It is the first code that is executed when the computer system is started
- It is the program that helps in restarting the system
- It is just a simple program like we have other programs in a system
Answer: A) It is the first code that is executed when the computer system is started
Explanation:
It is the first code that is executed when the computer system is started; it is stored in computer hardware.
Discuss this Question
16. ____ is the heart of an operating system?
- Software
- Programs
- CPU
- Kernel
Answer: D) Kernel
Explanation:
The kernel is the heart of an operating system; it is the kernel of an OS through which the OS controls the computer system.
Discuss this Question
17. How many types of kernels are there?
- 6
- 7
- 9
- 5
Answer: D) 5
Explanation:
In total there are 5 types of kernels: Monolithic kernels, Microkernel kernels, Hybrid Kernels, Nano Kernels, and Exo kernels.
Discuss this Question
18. In which type of kernel does the entire operating system run as a single program?
- Monolithic kernel
- Microkernel kernels
- Hybrid Kernels
- Nano Kernels
- Exo kernels
Answer: A) Monolithic kernel
Explanation:
In a Monolithic kernel, the entire operating system runs as a single program.
Discuss this Question
19. Which of the following does not use Monolithic Kernel?
- Windows 95
- Windows 7
- Windows 98
- Linux
Answer: B) Windows 7
Explanation:
Windows 7 uses hybrid kernels.
Discuss this Question
20. The function of ____ is to provide a communication facility between the client programs?
- Monolithic kernel
- Microkernel
- Hybrid Kernels
- Nano Kernels
Answer: B) Microkernel
Explanation:
The function of a microkernel is to provide a communication facility between the client programs; it also provides a facility for various services that are running in user space.
Discuss this Question
21. Among monolithic kernel and microkernel which have the larger size?
- Monolithic kernel
- Microkernel
Answer: A) Monolithic kernel
Explanation:
Monolithic kernel size is large as it is complex to design.
Discuss this Question
22. Which of the following kernel reduces the level of abstraction provided by operating systems and allows application-level management of hardware resources as much as possible?
- Exo Kernels
- Hybrid Kernels
- Nano Kernels
- Monolithic Kernel
Answer: A) Exo Kernels
Explanation:
Exo Kernel reduces the level of abstraction provided by operating systems and allows application-level management of hardware resources as much as possible.
Discuss this Question
23. State whether the statement is True or False
Interrupts are an important part of computer architecture?
- True
- False
Answer: A) True
Explanation:
True, interrupts are an important part of computer architecture as we know that external devices are comparatively slower than the CPU, so if there is no interruption CPU would waste a lot of time.
Discuss this Question
24. ____ refers to putting data of various I/O jobs in the buffer.
- Spooling
- Memory Buffer
- Processors
Answer: A) Spooling
Explanation:
Spooling refers to putting data of various I/O jobs in the buffer; this buffer is a special area in memory.
Discuss this Question
25. Which of the following is the main advantage of a microprocessor system?
- Increased throughput
- Economy of scale
- Increased reliability
- All of the above
Answer: D) All of the above
Explanation:
Increased throughput, Economy of scale, and increased reliability are the three main advantages of a microprocessor system.
Discuss this Question
26. How many components does the Linux Operating system have?
- 4
- 2
- 3
- 5
Answer: C) 3
Explanation:
Linux Operating system has primarily three components: - Kernel, System library, system utility.
Discuss this Question
27. A collection of the node which contains the information about all the files is known as ____?
- Files
- File management
- Directory
Answer: C) Directory
Explanation:
A collection of the node which contains the information about all the files is known as a directory.
Discuss this Question
28. Which of the following activities are managed by disk management ____?
- Free space management
- Storage allocation
- Disk scheduling
- All of the above
Answer: D) All of the above
Explanation:
Free space management, Storage allocation, and Disk scheduling are the activities that are managed by disk management.
Discuss this Question
29. Directory system can be classified into how many types?
- 3
- 5
- 6
- 2
Answer: D) 2
Explanation:
The directory system can be classified into single-level and hierarchical directory systems.
Discuss this Question
30. In ____ there is a root directory that has all files, there are no subdirectories?
- Single level directory system
- Hierarchical directory system
Answer: A) Single level directory system
Explanation:
In Single level directory system there is a root directory that has all files. It has a simple architecture and there are no subdirectories.
Discuss this Question
31. Which of the following method of disk space allocation requires all blocks of a file to be kept together contiguously, also performance is fast in this method?
- Linked Allocation
- Contiguous Allocation
- File Allocation
Answer: B) Contiguous Allocation
Explanation:
Contiguous Allocation method requires all blocks of a file to be kept together contiguously; also performance is fast in this method.
Discuss this Question
32. Which of the following method of disk space allocation involves no external fragmentation and is only efficient for sequential access files?
- Linked Allocation
- Contiguous Allocation
- File Allocation
Answer: A) Linked Allocation
Explanation:
Linked allocation method involves no external fragmentation and it is only efficient for sequential access files.
Discuss this Question
33. State whether the given statement is True or False - The disk scheduling algorithm that gives a minimum average seek time is better?
- True
- False
Answer: A) True
Explanation:
Seek time is the time taken by the head to move from the current track to the one where data is present, so the disk scheduling algorithm that gives a minimum average seek time is better.
Discuss this Question
34. State whether the given statement is True or False - Seek time always greater than Disk access time?
- True
- False
Answer: B) False
Explanation:
Disk access time is the time required by the computer to process a read/write request and retrieve the data, so Seek time is always less than Disk access time.
Discuss this Question
35. What is the formula to find disk access time?
- Disk Access time=Seek time +Rotational latency +transfer time
- Disk Access time=Seek time-Rotational latency+ transfer time
- Disk Access time=Seek time-Rotational latency-transfer time
- Disk Access time=Seek time+ Rotational latency/transfer time
Answer: A) Disk Access time=Seek time +Rotational latency +transfer time
Explanation:
Disk Access time=Seek time +Rotational latency +transfer time
Discuss this Question
36. A part of a computer program that performs a well-defined task is known as a ____?
- Software
- Process
- Algorithm
Answer: C) Algorithm
Explanation:
A part of a computer program that performs a well-defined task is known as an algorithm.
Discuss this Question
37. A collection of computer programs, libraries, and related data are referred to as____?
- Software
- Process
- Algorithm
Answer: A) Software
Explanation:
A collection of computer programs, libraries, and related data are referred to as software.
Discuss this Question
38. What are schedulers?
- Schedulers are the special software that handles process scheduling in various ways
- Schedulers are the processes that manage queues
- Schedulers are the system that schedules the processes
Answer: A) Schedulers are the special software that handles process scheduling in various ways
Explanation:
Schedulers are the special software that handles process scheduling in various ways.
Discuss this Question
39. How many types of schedulers are there?
- 5 types
- 3 types
- 2 types
- 4 types
Answer: B) 3 types
Explanation:
There are 3 types of schedulers: Long term schedulers, short-term schedulers, Medium term schedulers.
Discuss this Question
40. Long-term schedulers are also known as ___?
- Fix scheduler
- Duration scheduler
- Job scheduler
- CPU scheduler
Answer: C) Job scheduler
Explanation:
Long-term schedulers are also known as job schedulers.
Discuss this Question
41. Primary objective of job scheduler ____?
- The primary objective of a job scheduler is to provide a balanced mix of jobs
- The primary objective of the job scheduler is to increase system performance in accordance with the chosen set of criteria
- The primary objective of the job scheduler is to suspend the processes
- The primary objective of the job scheduler is to decrease the traffic of processes
Answer: A) The primary objective of a job scheduler is to provide a balanced mix of jobs
Explanation:
Long Primary objective of a job scheduler is to provide a balanced mix of jobs, such as I/O bound and processor bound.
Discuss this Question
42. What is the other name of the short-term scheduler?
- Fix scheduler
- Duration scheduler
- Job scheduler
- CPU scheduler
Answer: D) CPU scheduler
Explanation:
The other name for the short-term scheduler is CPU scheduler also dispatchers.
Discuss this Question
43. What is the Primary objective of CPU scheduler ____?
- The primary objective of the CPU scheduler is to provide a balanced mix of jobs
- The primary objective of the CPU scheduler is to increase system performance in accordance with the chosen set of criteria
- The primary objective of the CPU scheduler is to suspend the processes
- The primary objective of the CPU scheduler is to decrease the traffic of processes
Answer: B) The primary objective of the CPU scheduler is to increase system performance in accordance with the chosen set of criteria
Explanation:
The primary objective of the CPU scheduler is to increase system performance in accordance with the chosen set of criteria.
Discuss this Question
44. Among the long-term scheduler and short-term scheduler which is faster?
- Long term scheduler
- Short term scheduler
Answer: B) Short term scheduler
Explanation:
Short-term schedulers are faster than long-term schedulers.
Discuss this Question
45. How many types of process states are there?
- 5
- 6
- 3
- 2
Answer: A) 5
Explanation:
There are 5 states of processes: new, running, waiting, ready, and terminated.
Discuss this Question
46. Instructions are executed in which state?
- New
- Running
- Waiting
- Ready
- Terminated
Answer: B) Running
Explanation:
Instructions are executed in a running state.
Discuss this Question
47. At which state the process is waiting to be assigned to a processor?
- New
- Running
- Waiting
- Ready
- Terminated
Answer: D) Ready
Explanation:
When the process is in a ready state, it waits to be assigned to a processor.
Discuss this Question
48. What is pre-emption?
- In Pre-emption, the process is forcefully removed from the CPU
- In Pre-emption, the processes are not removed until they complete the execution
Answer: A) In Pre-emption, the process is forcefully removed from the CPU
Explanation:
In Pre-emption, the process is forcefully removed from the CPU.
Discuss this Question
49. What is Non-pre-emption?
- In Non-Pre-emotion, the process is forcefully removed from the CPU
- In Non-Pre-emption, the processes are not removed until they complete the execution
Answer: B) In Non-Pre-emption, the processes are not removed until they complete the execution
Explanation:
In Non-Pre-emption, the processes are not removed until they complete the execution.
Discuss this Question
50. What is PCB (Process control block)?
- A PCB just contains the information of terminated processes
- A PCB just contains information about new processes
- A PCB contains the information of processes that are in waiting for the state
- A PCB contains information about the process, i.e. registers
Answer: D) A PCB contains information about the process, i.e. registers
Explanation:
A PCB contains information about the process, i.e. registers
Discuss this Question
51. In priority CPU scheduling, the process with a larger CPU burst has ____ priority.
- Lower
- Higher
Answer: A) Lower
Explanation:
In priority CPU scheduling, the process with a larger CPU burst has lower priority and vice versa.
Discuss this Question
52. Which algorithm is best when there are equal qualities of processes in the queue?
- First Come First Serve
- Round Robin Scheduling
- Shortest Job First
- Priority CPU Scheduling
Answer: B) Round Robin Scheduling
Explanation:
Round Robin scheduling algorithm is best when there are equal qualities of processes in the queue.
Discuss this Question
53. Which of the following states the correct - difference between the process and thread?
- A thread is a program in execution while a process is a flow of control within a thread
- A process is a program in execution while a thread is a flow of control within a process
- A thread does not share the CPU as processes do
- Threads share the CPU as processes do
Select the correct answer.
- Only (i)
- Only (iii)
- Both (i) and (iii)
- Both (ii) and (iv)
Answer: D) Both (ii) and (iv)
Explanation:
A process is a program in execution while a thread is a flow of control within a process also; Threads share the CPU as processes do.
Discuss this Question
54. ____ memory is placed between the CPU and the main memory.
- Virtual memory
- ROM
- RAM
- Cache
Answer: D) Cache
Explanation:
Cache memory is placed between the CPU and the main memory.
Discuss this Question
55. ____ Address is an actual location in main memory whereas ____address is a reference to a memory location.
- Absolute address and physical address
- Physical address and virtual address
- Virtual address and logical address
Answer: B) Physical address and virtual address
Explanation:
Physical address is an actual location in main memory whereas virtual address is a reference to a memory location. (Virtual address is also known as a logical address).
Discuss this Question
56. The run-time mapping from virtual to physical addresses is done by which hardware device?
- Chipset
- CPU
- Memory management unit
- Physical address and virtual address
Answer: C) Memory management unit
Explanation:
The run-time mapping from virtual to physical addresses is done by the Memory management unit.
Discuss this Question
57. What is swapping?
- Moving the threads from one software to another is called swapping
- Swapping is just replacing a process
- Moving a process from main memory to disk and vice versa is known as swapping
- Shifting the process and threads directly into the disk is called swapping
Answer: C) Moving a process from main memory to disk and vice versa is known as swapping
Explanation:
Moving a process from main memory to disk and vice versa is known as swapping.
Discuss this Question
58. ____ is a memory management scheme that removes the requirement of contiguous allocation of physical memory?
- Paging
- Swapping
- Segmentation
- Fragmentation
Answer: A) Paging
Explanation:
Paging is a memory management scheme that removes the requirement of contiguous allocation of physical memory.
Discuss this Question
59. ____ is a technique that allows the execution of the process that may not be completely in memory?
- Virtual memory
- Segmentation
- Memory management unit
- Cache
Answer: A) Virtual memory
Explanation:
Virtual memory is a technique that allows the execution of a process that may not be completely in memory.
Discuss this Question
60. ____ controls the execution of processes running concurrently so as to produce consistent results?
- Process asynchronization
- Process synchronization
Answer: B) Process synchronization
Explanation:
Process synchronization controls the execution of processes running concurrently so as to produce consistent results.
Discuss this Question
61. Why do we need process synchronization?
- To avoid some of the processes
- For the easy transfer of process from disk to memory
- To avoid the inconsistent result
Answer: C) To avoid the inconsistent result
Explanation:
To avoid the inconsistent result, we need process synchronization.
Discuss this Question
62. What is the critical section?
- It is the part of the process which is being executed for so long
- It is the part of the thread which is going to be terminated
- It is the part of the program where shared resources are accessed by the process
- It is the part of the program where different processes are shared
Answer: C) It is the part of the program where shared resources are accessed by the process
Explanation:
Critical section is the part of the program where shared resources are accessed by the process. If multiple processes access the critical section concurrently, then the results produced might be inconsistent.
Discuss this Question
63. If multiple processes access the critical section concurrently, then the results produced might be inconsistent. These types of problem are commonly known as ____.
- Process synchronization problems
- Process mechanism problems
- Critical section problem
- Mutual exclusion
Answer: C) Critical section problem
Explanation:
If multiple processes access the critical section concurrently, then the results produced might be inconsistent. This problem is called a Critical section problem.
Discuss this Question
64. Among the four criteria for synchronization mechanism which of the two criteria are mandatory?
- Mutual Exclusion and Progress
- Progress and Architectural neural
- Bounded wait and mutual exclusion
- Bounded wait and progress
- Architectural neural and bounded wait
Answer: A) Mutual Exclusion and Progress
Explanation:
Mutual Exclusion and Progress are the mandatory criteria. They must be fulfilled by all the synchronization mechanisms.
Discuss this Question
65. ____ allows I/O devices to access memory directly without the participation of the processor.
- DMA
- DMA Controller
- Data Controller
- Device drivers
Answer: B) DMA Controller
Explanation:
DMA controller allows I/O devices to access memory directly without the participation of the processor.
Discuss this Question
66. Data transfer to and from the peripherals can be done in how many ways?
- 2 ways
- 3 ways
- 4 ways
- 6 ways
Answer: B) 3 ways
Explanation:
Data transfer to and from the peripherals can be done in three ways Programmed I/O, Interrupt- initiated I/O, and Direct memory access (DMA).
Discuss this Question
67. What is DMA?
- Direct memory access method of data transfer between main memory and peripheral devices
- Direct memory access method of data transfer between main memory and other devices
- Direct memory access method of data transfer between chip units memory and main memory
Answer: A) Direct memory access method of data transfer between main memory and peripheral devices
Explanation:
Direct memory access method of data transfer between main memory and other devices.
Discuss this Question
68. Whenever an I/O device wants to transfer the data to or from memory, it sends the DMA request (DRQ) to the ____.
- DMA
- DMA Controller
- Data Controller
- Device drivers
Answer: B) DMA Controller
Explanation:
Whenever an I/O device wants to transfer the data to or from memory, it sends the DMA request (DRQ) to the DMA controller accepts this DRQ, and asks the CPU to hold for a few clock cycles.
Discuss this Question
69. The address of the I/O device that wants to read or writes data. Is stored in the ____.
- Chip units
- DMA Controller
- Data registers
- Device drivers
Answer: C) Data registers
Explanation:
The address of the I/O device that wants to read or writes data is stored in the data registers.
Discuss this Question
70. Which of the type of OS reads and reacts in terms of actual time?
- Batch OS
- Quick Sharing OS
- Time Sharing OS
- Real Time OS
Answer: D) Real Time OS
Explanation:
The Real Time OS reads and reacts in terms of actual time.
Discuss this Question
71. DMA controller transfers the block of data to and from memory in how many ways?
- 2 ways
- 3 ways
- 4 ways
- 6 ways
Answer: B) 3 ways
Explanation:
Burst mode, cycle steal mode, and transparent mode are the three modes in which the DMA controller transfers the block of data to and from memory.
Discuss this Question
72. ____is the ability of a database to allow multiple Processes to affect multiple transactions?
- Transactions
- Concurrency
- Semaphores
- Normalization
Answer: B) Concurrency
Explanation:
Concurrency is the ability of a database to allow multiple Processes to affect multiple transactions.
Discuss this Question
73. Which of the following problem is faced during concurrency?
- The fundamental problem in concurrency is processes interfering with each other while accessing a shared global resource
- The ability to offer concurrency is unique to databases
- Only A
- Only B
- Both A and B
Answer: C) Only A
Explanation:
The fundamental problem in concurrency is processes interfering with each other while accessing a shared global resource.
Discuss this Question
74. ____is simply a variable that is non-negative and shared between threads.
- Critical variable
- Semaphore
- Process variable
- Global variable
Answer: B) Semaphore
Explanation:
Semaphore is simply a variable that is non-negative and shared between threads.
Discuss this Question
75. State whether the statement is true or false - Semaphore always holds a non-negative integer value.
- True
- False
Answer: A) True
Explanation:
Semaphore is simply a variable that is non-negative always.
Discuss this Question
76. How many types of semaphores are there?
- 2 types
- 3 types
- 5 types
- 6 types
Answer: A) 2 types
Explanation:
The two common kinds of semaphores are: Counting semaphores, Binary semaphores.
Discuss this Question
77. Which type of Semaphore uses a count that helps tasks to be acquired or released numerous times?
- Counting semaphores
- Binary semaphores
Answer: A) Counting semaphores
Explanation:
Counting semaphores are a type of Semaphore that uses a count that helps a task to be acquired or released numerous times.
Discuss this Question
78. In which semaphore, the wait operation works only if semaphore = 1, and the signal operation succeeds when semaphore= 0?
- Counting semaphores
- Binary semaphores
Answer: B) Binary semaphores
Explanation:
In binary semaphore, the wait operation works only if semaphore = 1, and the signal operation succeeds when semaphore= 0.
Discuss this Question
79. Among counting semaphores and binary semaphores which semaphore is easy to implement?
- Counting semaphores
- Binary semaphores
- Both A and B
- None of the above
Answer: B) Binary semaphores
Explanation:
Binary semaphore is easy to implement, as their value is restricted to 0 and 1.
Discuss this Question
80. Processes can communicate with each other using ____ and ____.
- Shared Memory and Message Passing
- Shared Memory and Data controller
- DMA and DMA controller
- Devices drivers and other peripherals
Answer: A) Shared Memory and Message Passing
Explanation:
Shared Memory and Message passing are the two methods in which processes communicate with each other.
Discuss this Question
81. ____ is a situation where each of the computer processes waits for a resource that is being assigned to another process.
- Deadlock
- Starvation
- Inversion
- Aging
Answer: A) Deadlock
Explanation:
Deadlock is a situation where each of the computer processes waits for a resource that is being assigned to another process, in this situation, none of the processes gets executed.
Discuss this Question
82. Which of the following conditions causes a deadlock situation?
- Mutual Exclusion
- Hold and Wait
- No Preemption
- Circular Wait
- All of the above
Answer: E) All of the above
Explanation:
Deadlock can arise if four conditions hold simultaneously: Mutual Exclusion, Hold and Wait, No Preemption, and Circular Wait.
Discuss this Question
83. State whether the statement is true or false? - Deadlocks can be prevented by preventing at least one of the four conditions: Mutual Exclusion, Hold and Wait, No Preemption, and Circular Wait.
- True
- False
Answer: A) True
Explanation:
Deadlocks can be prevented by preventing at least one of the four conditions: Mutual Exclusion, Hold and Wait, No Preemption, and Circular Wait because all these four conditions are required simultaneously to cause deadlock.
Discuss this Question
84. When all the low priority processes got blocked, while the high priority processes execute then this situation is termed as ____.
- Deadlock
- Starvation
- Inversion
- Aging
Answer: B) Starvation
Explanation:
When all the low priority processes got blocked, while the high priority processes execute then this situation is termed starvation.
Discuss this Question
85. Is starvation an infinite process?
- True
- False
Answer: B) False
Explanation:
No, starvation is long but not an infinite process whereas deadlock is an infinite process.
Discuss this Question
86. The occurrence of deadlock can be detected by the ____.
- Long term scheduler
- Medium Scheduler
- Resource Scheduler
- Short term scheduler
Answer: C) Resource Scheduler
Explanation:
The occurrence of deadlock can be detected by the resource scheduler.
Discuss this Question
87. Every starvation is a deadlock?
- Strongly agree
- Strongly disagree
- Not necessary
- Not possible
Answer: C) Not necessary
Explanation:
It is not necessary that every starvation is a deadlock.
Discuss this Question
88. Which of the following algorithm is commonly known as the deadlock avoidance algorithm?
- Round robin
- Banker's algorithm
- Shortest job first
- First come First Serve
Answer: B) Banker's algorithm
Explanation:
Banker's algorithm is commonly known as the deadlock avoidance algorithm.
Discuss this Question
89. ____ is a condition that takes place when two or more programs change their state continuously, with neither program making progress.
- Live Lock
- Dead Lock
- Aging
- None of the above
Answer: A) Live Lock
Explanation:
Live lock is a condition that takes place when two or more programs change their state continuously, with neither program making progress.
Discuss this Question
90. What causes the condition of starvation?
- It occurs due to uncontrolled priority and preemption
- It occurs due to uncontrolled mutual exclusion and resource management
- It occurs due to the uncontrolled priority and resource management
- All of the above
Answer: C) It occurs due to the uncontrolled priority and resource management
Explanation:
Starvation occurs due to uncontrolled priority and resource management.
Discuss this Question
91. Whenever a process needs I/O to or from a disk it issues a ____.
- System call to the operating system
- Separate directory structure
- Only A
- Only B
- Both A and B
Answer: C) Only A
Explanation:
Whenever a process needs I/O to or from a disk it issues a System call to the operating system.
Discuss this Question
92. Which system call creates the new process in Linux?
- Create
- Fork
- Exec
- vfork
Answer: B) Fork
Explanation:
In Linux, the Fork system call creates a new process.
Discuss this Question
93. If no frames are free how many page transfers are required?
- 3
- 4
- 2
- 5
Answer: C) 2
Explanation:
If no frames are free then 2-page transfers are required.
Discuss this Question
94. If a process is spending a lot of time paging than executing then this situation is known as ____.
- Aging
- Thrashing
- Live lock
- None of the above
Answer: B) Thrashing
Explanation:
If a process is spending a lot of time paging than executing then this situation is known as thrashing.
Discuss this Question
95. Each entry is a segment table that has a ____.
- Segment base
- Segment value
- Segment length
- Segment peak
Answer: A) Segment base
Explanation:
Each entry is a segment table that has a segment base.
Discuss this Question
96. Which of the following approach is used to recover a process from deadlock?
- Preempt resources
- Terminate one or more processes involved in the deadlock
- Inform the system operator, and allow him/her to take a manual intervention
- All of the above
Answer: D) All of the above
Explanation:
Preempt resources, terminate one or more processes involved in the deadlock, Inform the system operator, and allow him/her to take manual intervention all these approaches to recover from deadlock.
Discuss this Question
97. ____ is the interface between the command language user and the OS.
- Kernel
- System Utilities
- Shell
- None
Answer: C) Shell
Explanation:
Shell is the interface between the command language user and the OS.
Discuss this Question
98. The architecture of the Linux system has how many layers?
- 3
- 4
- 2
- 5
Answer: B) 4
Explanation:
Hardware layer, kernel, shell, and utilities are the layers of the Linux system.
Discuss this Question
99. Among network operating systems and distributed operating systems which is more reliable?
- Network OS
- Distributed OS
Answer: B) Distributed OS
Explanation:
Distributed OS is more reliable or fault tolerant.
Discuss this Question
100. If a process fails, most operating system write the error information to a ____.
- New file
- Another running process
- Log file
- None of the mentioned
Answer: C) Log file
Explanation:
If a process fails, most operating system write the error information to a Log file.
Discuss this Question