mcqs from operating system set 1-25

 

1. What is an operating system?

a) Software that manages computer hardware and software resources
b) Hardware that performs basic functions
c) Interface for connecting peripherals
d) Language translator
Answer: a


2. Which of the following is NOT a type of operating system?

a) Batch Operating System
b) Multiprocessing Operating System
c) Network Operating System
d) File Operating System
Answer: d


3. The primary purpose of an operating system is to:

a) Perform computations
b) Manage resources and provide services to users
c) Convert source code to machine code
d) Provide networking capabilities
Answer: b


4. What is a kernel in an operating system?

a) The shell interface
b) The core component that manages system resources
c) A type of application software
d) A secondary storage unit
Answer: b


5. In which of the following modes does the operating system execute?

a) User mode
b) Kernel mode
c) Multi-user mode
d) Application mode
Answer: b


6. Which of these is an example of a real-time operating system?

a) Windows 10
b) Unix
c) QNX
d) macOS
Answer: c


7. What is the full form of GUI?

a) Graphical User Interface
b) General User Interface
c) Graphics Utility Integration
d) General Utility Interaction
Answer: a


8. What is the purpose of a process scheduler?

a) To schedule printers
b) To allocate memory to programs
c) To determine the order in which processes run
d) To manage hard disk space
Answer: c


9. In multiprogramming, the operating system:

a) Executes multiple processes simultaneously
b) Switches between processes to increase CPU utilization
c) Stops all processes except one
d) None of the above
Answer: b


10. What does a system call do?

a) Executes hardware commands directly
b) Provides an interface between user programs and the operating system
c) Manages peripheral devices
d) Manages file systems
Answer: b


11. A deadlock occurs when:

a) The CPU is underutilized
b) A process is waiting indefinitely for resources
c) Two processes share the same memory
d) File systems become corrupt
Answer: b


12. The process of converting a virtual address into a physical address is called:

a) Paging
b) Segmentation
c) Address translation
d) Virtualization
Answer: c


13. Which scheduling algorithm is non-preemptive?

a) Round Robin
b) Shortest Job Next
c) Priority Scheduling
d) Multi-Level Queue
Answer: b


14. Thrashing in an operating system is caused by:

a) Low CPU utilization
b) Excessive paging
c) Deadlock
d) Poor network configuration
Answer: b


15. Which of these is NOT a process state?

a) New
b) Running
c) Swapping
d) Terminated
Answer: c


16. The ‘time slice’ in Round Robin scheduling refers to:

a) The maximum time allocated to each process
b) The time between context switches
c) The time required to complete all processes
d) The time for system updates
Answer: a


17. What is the main purpose of virtual memory?

a) To allow execution of large programs
b) To store temporary files
c) To back up data
d) To prevent deadlocks
Answer: a


18. Semaphore is used to:

a) Prevent deadlock
b) Synchronize processes
c) Schedule tasks
d) Manage memory
Answer: b


19. Which of the following is a disk scheduling algorithm?

a) FIFO
b) LRU
c) SSTF
d) Round Robin
Answer: c


20. Swapping is a process used to:

a) Move data from cache to CPU
b) Transfer processes between main memory and secondary storage
c) Allocate memory dynamically
d) Recover from deadlock
Answer: b


21. Which of the following is a file allocation method?

a) Contiguous allocation
b) Binary allocation
c) Swapping allocation
d) Fragmented allocation
Answer: a


22. In a hierarchical directory structure, the topmost directory is called:

a) Root
b) Parent
c) Subdirectory
d) Base
Answer: a


23. A critical section refers to:

a) A section of code that accesses shared resources
b) A segment of the kernel code
c) The region of a program requiring disk access
d) A deadlock prevention mechanism
Answer: a


24. What is the main function of the shell in an operating system?

a) Manage hardware devices
b) Provide a command-line interface to the user
c) Schedule processes
d) Handle memory management
Answer: b


25. Fragmentation occurs when:

a) There is insufficient memory
b) Free memory is broken into non-contiguous blocks
c) A program crashes unexpectedly
d) A file system is corrupted
Answer: b

Previous Post Next Post

نموذج الاتصال