×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

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.

  1. Software
  2. Program
  3. Process
  4. 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?

  1. 3
  2. 8
  3. 7
  4. 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?

  1. Error detection aids
  2. Control over system performance
  3. Job Accounting
  4. Coordination between other software and users
  5. 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?

  1. Batch Operating system
  2. Multitasking Operating System
  3. Time-sharing Operating System
  4. 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?

  1. Batch Operating system
  2. Multitasking Operating System
  3. Time-sharing Operating System
  4. 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?

  1. Large turnaround time
  2. It is very easy to debug the program in this operating system
  3. 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?

  1. 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
  2. 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?

  1. Batch Operating System
  2. 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?

  1. Batch Operating system
  2. Multitasking Operating System
  3. Time-sharing Operating System
  4. 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?

  1. Batch Operating system
  2. Network operating system
  3. Mobile Operating system
  4. 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?

  1. Mac OS X
  2. Novell Netware
  3. BSD
  4. 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?

  1. Batch Operating system
  2. Network operating system
  3. Mobile Operating system
  4. 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?

  1. 3
  2. 2
  3. 5
  4. 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?

  1. Hard real-time systems
  2. 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?

  1. It is the first code that is executed when the computer system is started
  2. It is the program that helps in restarting the system
  3. 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?

  1. Software
  2. Programs
  3. CPU
  4. 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?

  1. 6
  2. 7
  3. 9
  4. 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?

  1. Monolithic kernel
  2. Microkernel kernels
  3. Hybrid Kernels
  4. Nano Kernels
  5. 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?

  1. Windows 95
  2. Windows 7
  3. Windows 98
  4. 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?

  1. Monolithic kernel
  2. Microkernel
  3. Hybrid Kernels
  4. 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?

  1. Monolithic kernel
  2. 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?

  1. Exo Kernels
  2. Hybrid Kernels
  3. Nano Kernels
  4. 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?

  1. True
  2. 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.

  1. Spooling
  2. Memory Buffer
  3. 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?

  1. Increased throughput
  2. Economy of scale
  3. Increased reliability
  4. 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?

  1. 4
  2. 2
  3. 3
  4. 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 ____?

  1. Files
  2. File management
  3. 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 ____?

  1. Free space management
  2. Storage allocation
  3. Disk scheduling
  4. 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?

  1. 3
  2. 5
  3. 6
  4. 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?

  1. Single level directory system
  2. 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?

  1. Linked Allocation
  2. Contiguous Allocation
  3. 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?

  1. Linked Allocation
  2. Contiguous Allocation
  3. 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?

  1. True
  2. 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?

  1. True
  2. 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?

  1. Disk Access time=Seek time +Rotational latency +transfer time
  2. Disk Access time=Seek time-Rotational latency+ transfer time
  3. Disk Access time=Seek time-Rotational latency-transfer time
  4. 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 ____?

  1. Software
  2. Process
  3. 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____?

  1. Software
  2. Process
  3. 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?

  1. Schedulers are the special software that handles process scheduling in various ways
  2. Schedulers are the processes that manage queues
  3. 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?

  1. 5 types
  2. 3 types
  3. 2 types
  4. 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 ___?

  1. Fix scheduler
  2. Duration scheduler
  3. Job scheduler
  4. 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 ____?

  1. The primary objective of a job scheduler is to provide a balanced mix of jobs
  2. The primary objective of the job scheduler is to increase system performance in accordance with the chosen set of criteria
  3. The primary objective of the job scheduler is to suspend the processes
  4. 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?

  1. Fix scheduler
  2. Duration scheduler
  3. Job scheduler
  4. 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 ____?

  1. The primary objective of the CPU scheduler is to provide a balanced mix of jobs
  2. The primary objective of the CPU scheduler is to increase system performance in accordance with the chosen set of criteria
  3. The primary objective of the CPU scheduler is to suspend the processes
  4. 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?

  1. Long term scheduler
  2. 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?

  1. 5
  2. 6
  3. 3
  4. 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?

  1. New
  2. Running
  3. Waiting
  4. Ready
  5. 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?

  1. New
  2. Running
  3. Waiting
  4. Ready
  5. 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?

  1. In Pre-emption, the process is forcefully removed from the CPU
  2. 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?

  1. In Non-Pre-emotion, the process is forcefully removed from the CPU
  2. 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)?

  1. A PCB just contains the information of terminated processes
  2. A PCB just contains information about new processes
  3. A PCB contains the information of processes that are in waiting for the state
  4. 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.

  1. Lower
  2. 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?

  1. First Come First Serve
  2. Round Robin Scheduling
  3. Shortest Job First
  4. 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?

  1. A thread is a program in execution while a process is a flow of control within a thread
  2. A process is a program in execution while a thread is a flow of control within a process
  3. A thread does not share the CPU as processes do
  4. Threads share the CPU as processes do

Select the correct answer.

  1. Only (i)
  2. Only (iii)
  3. Both (i) and (iii)
  4. 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.

  1. Virtual memory
  2. ROM
  3. RAM
  4. 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.

  1. Absolute address and physical address
  2. Physical address and virtual address
  3. 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?

  1. Chipset
  2. CPU
  3. Memory management unit
  4. 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?

  1. Moving the threads from one software to another is called swapping
  2. Swapping is just replacing a process
  3. Moving a process from main memory to disk and vice versa is known as swapping
  4. 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?

  1. Paging
  2. Swapping
  3. Segmentation
  4. 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?

  1. Virtual memory
  2. Segmentation
  3. Memory management unit
  4. 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?

  1. Process asynchronization
  2. 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?

  1. To avoid some of the processes
  2. For the easy transfer of process from disk to memory
  3. 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?

  1. It is the part of the process which is being executed for so long
  2. It is the part of the thread which is going to be terminated
  3. It is the part of the program where shared resources are accessed by the process
  4. 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 ____.

  1. Process synchronization problems
  2. Process mechanism problems
  3. Critical section problem
  4. 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?

  1. Mutual Exclusion and Progress
  2. Progress and Architectural neural
  3. Bounded wait and mutual exclusion
  4. Bounded wait and progress
  5. 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.

  1. DMA
  2. DMA Controller
  3. Data Controller
  4. 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?

  1. 2 ways
  2. 3 ways
  3. 4 ways
  4. 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?

  1. Direct memory access method of data transfer between main memory and peripheral devices
  2. Direct memory access method of data transfer between main memory and other devices
  3. 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 ____.

  1. DMA
  2. DMA Controller
  3. Data Controller
  4. 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 ____.

  1. Chip units
  2. DMA Controller
  3. Data registers
  4. 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?

  1. Batch OS
  2. Quick Sharing OS
  3. Time Sharing OS
  4. 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?

  1. 2 ways
  2. 3 ways
  3. 4 ways
  4. 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?

  1. Transactions
  2. Concurrency
  3. Semaphores
  4. 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?

  1. The fundamental problem in concurrency is processes interfering with each other while accessing a shared global resource
  2. The ability to offer concurrency is unique to databases
  3. Only A
  4. Only B
  5. 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.

  1. Critical variable
  2. Semaphore
  3. Process variable
  4. 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.

  1. True
  2. 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?

  1. 2 types
  2. 3 types
  3. 5 types
  4. 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?

  1. Counting semaphores
  2. 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?

  1. Counting semaphores
  2. 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?

  1. Counting semaphores
  2. Binary semaphores
  3. Both A and B
  4. 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 ____.

  1. Shared Memory and Message Passing
  2. Shared Memory and Data controller
  3. DMA and DMA controller
  4. 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.

  1. Deadlock
  2. Starvation
  3. Inversion
  4. 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?

  1. Mutual Exclusion
  2. Hold and Wait
  3. No Preemption
  4. Circular Wait
  5. 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.

  1. True
  2. 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 ____.

  1. Deadlock
  2. Starvation
  3. Inversion
  4. 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?

  1. True
  2. 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 ____.

  1. Long term scheduler
  2. Medium Scheduler
  3. Resource Scheduler
  4. 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?

  1. Strongly agree
  2. Strongly disagree
  3. Not necessary
  4. 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?

  1. Round robin
  2. Banker's algorithm
  3. Shortest job first
  4. 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.

  1. Live Lock
  2. Dead Lock
  3. Aging
  4. 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?

  1. It occurs due to uncontrolled priority and preemption
  2. It occurs due to uncontrolled mutual exclusion and resource management
  3. It occurs due to the uncontrolled priority and resource management
  4. 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 ____.

  1. System call to the operating system
  2. Separate directory structure
  3. Only A
  4. Only B
  5. 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?

  1. Create
  2. Fork
  3. Exec
  4. 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?

  1. 3
  2. 4
  3. 2
  4. 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 ____.

  1. Aging
  2. Thrashing
  3. Live lock
  4. 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 ____.

  1. Segment base
  2. Segment value
  3. Segment length
  4. 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?

  1. Preempt resources
  2. Terminate one or more processes involved in the deadlock
  3. Inform the system operator, and allow him/her to take a manual intervention
  4. 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.

  1. Kernel
  2. System Utilities
  3. Shell
  4. 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?

  1. 3
  2. 4
  3. 2
  4. 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?

  1. Network OS
  2. 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 ____.

  1. New file
  2. Another running process
  3. Log file
  4. 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




Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.