Operating System (OS) - MCQ Question Bank
Q1. Which of the following is not a function of an operating system?
A) Memory management
B) File management
C) Compiler design
D) Process management
Answer: C
Q2. A process is:
A) A program in execution
B) A program that is compiled
C) A program that is idle
D) None
Answer: A
Q3. The part of the OS that loads first and remains in memory is called:
A) Shell
B) Kernel
C) Command line
D) API
Answer: B
Q4. Which of the following is a process state?
A) Running
B) Waiting
C) Ready
D) All of the above
Answer: D
Q5. What is a context switch?
A) Changing memory layout
B) Changing from user to kernel mode
C) Saving and loading process state
D) None
Page 1
Operating System (OS) - MCQ Question Bank
Answer: C
Q6. Which scheduling algorithm may cause starvation?
A) Round Robin
B) FCFS
C) Shortest Job First
D) Multilevel Queue
Answer: C
Q7. Threads share:
A) Stack
B) Registers
C) Code section
D) None of the above
Answer: C
Q8. Which scheduler selects a process from the ready queue?
A) Long-term scheduler
B) Mid-term scheduler
C) Short-term scheduler
D) None
Answer: C
Q9. Time quantum is used in:
A) FCFS
B) SJF
C) Priority
D) Round Robin
Answer: D
Q10. Race condition occurs when:
A) Processes execute sequentially
B) Multiple processes access shared data
Page 2
Operating System (OS) - MCQ Question Bank
C) Only one process runs
D) None
Answer: B
Q11. Which of these avoids race condition?
A) Semaphore
B) Deadlock
C) Fork
D) None
Answer: A
Q12. Deadlock conditions include all except:
A) Mutual exclusion
B) Preemption
C) Circular wait
D) Hold and wait
Answer: B
Q13. Which algorithm is used for deadlock avoidance?
A) Round robin
B) FCFS
C) Banker's algorithm
D) DFS
Answer: C
Q14. Critical section problem is related to:
A) Memory management
B) Process synchronization
C) Deadlock
D) None
Answer: B
Q15. Which memory allocation technique suffers from external fragmentation?
Page 3
Operating System (OS) - MCQ Question Bank
A) Paging
B) Segmentation
C) Contiguous allocation
D) Demand paging
Answer: C
Q16. Page fault occurs when:
A) Page is in memory
B) Page is not in memory
C) Page is on CPU
D) Page is corrupted
Answer: B
Q17. Which algorithm replaces the page that will not be used for the longest time?
A) FIFO
B) LRU
C) Optimal
D) MRU
Answer: C
Q18. Which of these is a file allocation method?
A) Paging
B) Contiguous
C) Scheduling
D) Semaphore
Answer: B
Q19. Spooling is used in:
A) Memory allocation
B) File I/O
C) Printer queue management
D) Semaphore
Answer: C
Page 4
Operating System (OS) - MCQ Question Bank
Q20. Device driver is a part of:
A) User program
B) Application layer
C) OS kernel
D) Database
Answer: C
Q21. Which of the following is responsible for managing hardware?
A) Compiler
B) User
C) Operating System
D) Application
Answer: C
Q22. Which of these is a type of real-time OS?
A) RTOS
B) DOS
C) Batch OS
D) Multiprogramming OS
Answer: A
Q23. Multiprogramming systems _____
A) Are easier to develop
B) Execute one program at a time
C) Execute multiple programs
D) Use multiple CPUs
Answer: C
Q24. Which of the following is not a type of OS?
A) Time-sharing
B) Batch
C) Compiler-based
D) Real-time
Page 5
Operating System (OS) - MCQ Question Bank
Answer: C
Q25. Process control block does not contain:
A) Program counter
B) Process state
C) I/O status
D) Program code
Answer: D
Q26. Which scheduling algorithm gives minimum average waiting time?
A) FCFS
B) SJF
C) Priority
D) Round Robin
Answer: B
Q27. Turnaround time = Completion time - ?
A) Arrival time
B) Burst time
C) Waiting time
D) Response time
Answer: A
Q28. Which of the following is not a deadlock avoidance strategy?
A) Banker's algorithm
B) Resource allocation graph
C) Wait-die
D) Safe state
Answer: C
Q29. The method used to prevent deadlock is:
A) Ignore the problem
B) Kill processes
Page 6
Operating System (OS) - MCQ Question Bank
C) Resource allocation graph
D) All of the above
Answer: D
Q30. Swapping involves:
A) Switching between user and kernel mode
B) Exchanging processes between main and secondary memory
C) Context switching
D) Replacing system files
Answer: B
Q31. Paging is a memory management scheme that:
A) Eliminates external fragmentation
B) Eliminates internal fragmentation
C) Is not used in modern OS
D) Uses variable-size blocks
Answer: A
Q32. The size of a page in paging is:
A) Fixed
B) Variable
C) Determined by process
D) Determined by compiler
Answer: A
Q33. LRU page replacement works on the principle of:
A) First come first served
B) Most recently used
C) Least recently used
D) Longest job first
Answer: C
Q34. Which disk scheduling algorithm is starvation-free?
Page 7
Operating System (OS) - MCQ Question Bank
A) FCFS
B) SSTF
C) SCAN
D) C-SCAN
Answer: D
Q35. Thrashing results in:
A) High CPU utilization
B) Increased I/O
C) Low page fault rate
D) Decreased CPU efficiency
Answer: D
Q36. In UNIX, which system call is used to create a process?
A) exec()
B) wait()
C) fork()
D) init()
Answer: C
Q37. In which directory are device files stored in Linux?
A) /bin
B) /dev
C) /etc
D) /tmp
Answer: B
Q38. Which file allocation method suffers from external fragmentation?
A) Contiguous
B) Linked
C) Indexed
D) None
Answer: A
Page 8
Operating System (OS) - MCQ Question Bank
Q39. Which of the following is not a disk scheduling algorithm?
A) LOOK
B) SCAN
C) SSTF
D) LRU
Answer: D
Q40. Which of these is not part of I/O management?
A) Buffering
B) Spooling
C) Caching
D) Segmentation
Answer: D
Q41. Which of the following is responsible for managing hardware?
A) Compiler
B) User
C) Operating System
D) Application
Answer: C
Q42. Which of these is a type of real-time OS?
A) RTOS
B) DOS
C) Batch OS
D) Multiprogramming OS
Answer: A
Q43. Multiprogramming systems _____
A) Are easier to develop
B) Execute one program at a time
C) Execute multiple programs
D) Use multiple CPUs
Page 9
Operating System (OS) - MCQ Question Bank
Answer: C
Q44. Which of the following is not a type of OS?
A) Time-sharing
B) Batch
C) Compiler-based
D) Real-time
Answer: C
Q45. Process control block does not contain:
A) Program counter
B) Process state
C) I/O status
D) Program code
Answer: D
Q46. Which scheduling algorithm gives minimum average waiting time?
A) FCFS
B) SJF
C) Priority
D) Round Robin
Answer: B
Q47. Turnaround time = Completion time - ?
A) Arrival time
B) Burst time
C) Waiting time
D) Response time
Answer: A
Q48. Which of the following is not a deadlock avoidance strategy?
A) Banker's algorithm
B) Resource allocation graph
Page 10
Operating System (OS) - MCQ Question Bank
C) Wait-die
D) Safe state
Answer: C
Q49. The method used to prevent deadlock is:
A) Ignore the problem
B) Kill processes
C) Resource allocation graph
D) All of the above
Answer: D
Q50. Swapping involves:
A) Switching between user and kernel mode
B) Exchanging processes between main and secondary memory
C) Context switching
D) Replacing system files
Answer: B
Q51. Paging is a memory management scheme that:
A) Eliminates external fragmentation
B) Eliminates internal fragmentation
C) Is not used in modern OS
D) Uses variable-size blocks
Answer: A
Q52. The size of a page in paging is:
A) Fixed
B) Variable
C) Determined by process
D) Determined by compiler
Answer: A
Q53. LRU page replacement works on the principle of:
Page 11
Operating System (OS) - MCQ Question Bank
A) First come first served
B) Most recently used
C) Least recently used
D) Longest job first
Answer: C
Q54. Which disk scheduling algorithm is starvation-free?
A) FCFS
B) SSTF
C) SCAN
D) C-SCAN
Answer: D
Q55. Thrashing results in:
A) High CPU utilization
B) Increased I/O
C) Low page fault rate
D) Decreased CPU efficiency
Answer: D
Q56. In UNIX, which system call is used to create a process?
A) exec()
B) wait()
C) fork()
D) init()
Answer: C
Q57. In which directory are device files stored in Linux?
A) /bin
B) /dev
C) /etc
D) /tmp
Answer: B
Page 12
Operating System (OS) - MCQ Question Bank
Q58. Which file allocation method suffers from external fragmentation?
A) Contiguous
B) Linked
C) Indexed
D) None
Answer: A
Q59. Which of the following is not a disk scheduling algorithm?
A) LOOK
B) SCAN
C) SSTF
D) LRU
Answer: D
Q60. Which of these is not part of I/O management?
A) Buffering
B) Spooling
C) Caching
D) Segmentation
Answer: D
Q61. Which of the following is responsible for managing hardware?
A) Compiler
B) User
C) Operating System
D) Application
Answer: C
Q62. Which of these is a type of real-time OS?
A) RTOS
B) DOS
C) Batch OS
D) Multiprogramming OS
Page 13
Operating System (OS) - MCQ Question Bank
Answer: A
Q63. Multiprogramming systems _____
A) Are easier to develop
B) Execute one program at a time
C) Execute multiple programs
D) Use multiple CPUs
Answer: C
Q64. Which of the following is not a type of OS?
A) Time-sharing
B) Batch
C) Compiler-based
D) Real-time
Answer: C
Q65. Process control block does not contain:
A) Program counter
B) Process state
C) I/O status
D) Program code
Answer: D
Q66. Which scheduling algorithm gives minimum average waiting time?
A) FCFS
B) SJF
C) Priority
D) Round Robin
Answer: B
Q67. Turnaround time = Completion time - ?
A) Arrival time
B) Burst time
Page 14
Operating System (OS) - MCQ Question Bank
C) Waiting time
D) Response time
Answer: A
Q68. Which of the following is not a deadlock avoidance strategy?
A) Banker's algorithm
B) Resource allocation graph
C) Wait-die
D) Safe state
Answer: C
Q69. The method used to prevent deadlock is:
A) Ignore the problem
B) Kill processes
C) Resource allocation graph
D) All of the above
Answer: D
Q70. Swapping involves:
A) Switching between user and kernel mode
B) Exchanging processes between main and secondary memory
C) Context switching
D) Replacing system files
Answer: B
Q71. Paging is a memory management scheme that:
A) Eliminates external fragmentation
B) Eliminates internal fragmentation
C) Is not used in modern OS
D) Uses variable-size blocks
Answer: A
Q72. The size of a page in paging is:
Page 15
Operating System (OS) - MCQ Question Bank
A) Fixed
B) Variable
C) Determined by process
D) Determined by compiler
Answer: A
Q73. LRU page replacement works on the principle of:
A) First come first served
B) Most recently used
C) Least recently used
D) Longest job first
Answer: C
Q74. Which disk scheduling algorithm is starvation-free?
A) FCFS
B) SSTF
C) SCAN
D) C-SCAN
Answer: D
Q75. Thrashing results in:
A) High CPU utilization
B) Increased I/O
C) Low page fault rate
D) Decreased CPU efficiency
Answer: D
Q76. In UNIX, which system call is used to create a process?
A) exec()
B) wait()
C) fork()
D) init()
Answer: C
Page 16
Operating System (OS) - MCQ Question Bank
Q77. In which directory are device files stored in Linux?
A) /bin
B) /dev
C) /etc
D) /tmp
Answer: B
Q78. Which file allocation method suffers from external fragmentation?
A) Contiguous
B) Linked
C) Indexed
D) None
Answer: A
Q79. Which of the following is not a disk scheduling algorithm?
A) LOOK
B) SCAN
C) SSTF
D) LRU
Answer: D
Q80. Which of these is not part of I/O management?
A) Buffering
B) Spooling
C) Caching
D) Segmentation
Answer: D
Q81. Which of the following is responsible for managing hardware?
A) Compiler
B) User
C) Operating System
D) Application
Page 17
Operating System (OS) - MCQ Question Bank
Answer: C
Q82. Which of these is a type of real-time OS?
A) RTOS
B) DOS
C) Batch OS
D) Multiprogramming OS
Answer: A
Q83. Multiprogramming systems _____
A) Are easier to develop
B) Execute one program at a time
C) Execute multiple programs
D) Use multiple CPUs
Answer: C
Q84. Which of the following is not a type of OS?
A) Time-sharing
B) Batch
C) Compiler-based
D) Real-time
Answer: C
Q85. Process control block does not contain:
A) Program counter
B) Process state
C) I/O status
D) Program code
Answer: D
Q86. Which scheduling algorithm gives minimum average waiting time?
A) FCFS
B) SJF
Page 18
Operating System (OS) - MCQ Question Bank
C) Priority
D) Round Robin
Answer: B
Q87. Turnaround time = Completion time - ?
A) Arrival time
B) Burst time
C) Waiting time
D) Response time
Answer: A
Q88. Which of the following is not a deadlock avoidance strategy?
A) Banker's algorithm
B) Resource allocation graph
C) Wait-die
D) Safe state
Answer: C
Q89. The method used to prevent deadlock is:
A) Ignore the problem
B) Kill processes
C) Resource allocation graph
D) All of the above
Answer: D
Q90. Swapping involves:
A) Switching between user and kernel mode
B) Exchanging processes between main and secondary memory
C) Context switching
D) Replacing system files
Answer: B
Q91. Paging is a memory management scheme that:
Page 19
Operating System (OS) - MCQ Question Bank
A) Eliminates external fragmentation
B) Eliminates internal fragmentation
C) Is not used in modern OS
D) Uses variable-size blocks
Answer: A
Q92. The size of a page in paging is:
A) Fixed
B) Variable
C) Determined by process
D) Determined by compiler
Answer: A
Q93. LRU page replacement works on the principle of:
A) First come first served
B) Most recently used
C) Least recently used
D) Longest job first
Answer: C
Q94. Which disk scheduling algorithm is starvation-free?
A) FCFS
B) SSTF
C) SCAN
D) C-SCAN
Answer: D
Q95. Thrashing results in:
A) High CPU utilization
B) Increased I/O
C) Low page fault rate
D) Decreased CPU efficiency
Answer: D
Page 20
Operating System (OS) - MCQ Question Bank
Q96. In UNIX, which system call is used to create a process?
A) exec()
B) wait()
C) fork()
D) init()
Answer: C
Q97. In which directory are device files stored in Linux?
A) /bin
B) /dev
C) /etc
D) /tmp
Answer: B
Q98. Which file allocation method suffers from external fragmentation?
A) Contiguous
B) Linked
C) Indexed
D) None
Answer: A
Q99. Which of the following is not a disk scheduling algorithm?
A) LOOK
B) SCAN
C) SSTF
D) LRU
Answer: D
Q100. Which of these is not part of I/O management?
A) Buffering
B) Spooling
C) Caching
D) Segmentation
Page 21
Operating System (OS) - MCQ Question Bank
Answer: D
Page 22