MCQ On Kernel
Q1. The kernel is best described as:.
- A user application
- A device driver only
- The core of the operating system that manages resources
- A compiler
Answer: c, The core of the operating system that manages resources
Solution: Kernel controls CPU, memory, I/O, processes—core OS component.
Q2. Which of the following is NOT a function of the kernel?.
- Process scheduling
- Memory management
- File access control
- Word processing
Answer: d, Word processing
Solution: Word processing is an application, not kernel responsibility.
Q3. In a system call, control is transferred from:.
- Kernel mode to kernel mode
- User mode to kernel mode
- Kernel mode to user mode
- User mode to user mode
Answer: b, User mode to kernel mode
Solution: System calls switch from user space to kernel space to access privileged services.
Q4. Which mode allows execution of privileged instructions?.
- User mode
- Kernel mode
- Virtual mode
- Cache mode
Answer: b, Kernel mode
Solution: Privileged instructions (I/O, memory control) run only in kernel mode.
Q5. Which kernel type keeps most OS services inside the kernel?.
- Microkernel
- Monolithic kernel
- Exokernel
- Nano kernel
Answer: b, Monolithic kernel
Solution: Monolithic kernels include drivers, file system, networking et inside kernel space.
Q6. A key advantage of a microkernel is:.
- Larger kernel size
- Easier to crash the whole system
- Better modularity and reliability
- No context switches
Answer: c, Better modularity and reliability
Solution: Microkernels keep minimal code in kernel; services in user space -> safer/modular.
Q7. A key disadvantage of a microkernel (compared to monolithic) is:.
- More secure
- Higher overhead due to IPC/context switches
- Smaller size
- Better fault isolation
Answer: b, Higher overhead due to IPC/context switches
Solution: Communication between services via IPC can add overhea
Q8. Linux is typically classified as:.
- Microkernel
- Monolithic kernel (modular monolithic)
- Pure hybrid kernel
- No kernel
Answer: b, Monolithic kernel (modular monolithic)
Solution: Linux is monolithic but supports loadable modules (drivers can be loaded/unloaded).
Q9. Windows kernel is commonly described as:.
- Pure microkernel
- Pure monolithic kernel
- Hybrid kernel
- Distributed kernel
Answer: c, Hybrid kernel
Solution: Windows uses a hybrid approach (microkernel ideas + many services in kernel).
Q10. The main purpose of the kernel is to:.
- Provide GUI only
- Compile programs
- Manage system resources and provide services to programs
- Run only one program at a time
Answer: c, Manage system resources and provide services to programs
Solution: Kernel is the resource manager + interface to hardware.
Q11. Which of the following runs in kernel space?.
- Text editor
- Web browser
- Device driver (generally)
- Spreadsheet
Answer: c, Device driver (generally)
Solution: Drivers typically run in kernel space (though some OSs support user-space drivers).
Q12. If a process performs a file read, it typically triggers:.
- A page fault always
- A system call
- A compiler pass
- A deadlock
Answer: b, A system call
Solution: File I/O uses OS services, accessed via system calls into kernel.
Q13. Which of the following is an example of a privileged operation?.
- Integer addition
- Reading/writing I/O device registers
- Printing to screen using an app
- Sorting an array
Answer: b, Reading/writing I/O device registers
Solution: Direct device access is privileged ? kernel mode only.
Q14. Kernel maintains which of the following for processes?.
- Only the source code
- Process Control Block (PCB)
- Only HTML pages
- Only keyboard buffer
Answer: b, Process Control Block (PCB)
Solution: PCB stores process state, registers, scheduling info, et
Q15. Context switch is:.
- Switching from one user to another
- Switching CPU from one process/thread to another
- Switching from RAM to ROM
- Switching from HDD to SSD
Answer: b, Switching CPU from one process/thread to another
Solution: Kernel saves current process state and loads next process state.
Q16. Which is correct about kernel and shell?.
- Kernel is command interpreter, shell manages hardware
- Shell is core OS, kernel is UI
- Kernel manages hardware/resources, shell is command interpreter interface
- Both are same
Answer: c, Kernel manages hardware/resources, shell is command interpreter interface
Solution: Shell provides interface; kernel is the core controller.
Q17. The kernel uses scheduling to decide:.
- Which file to delete
- Which process gets CPU next
- Which user logs in
- Which RAM chip to use
Answer: b, Which process gets CPU next
Solution: Scheduling allocates CPU time among processes/threads.
Q18. Which statement about user mode is correct?.
- Can execute all privileged instructions
- Cannot directly access hardware
- Can modify page tables directly
- Can disable interrupts
Answer: b, Cannot directly access hardware
Solution: User mode is restricted; kernel handles hardware access.
Q19. The main goal of having user mode and kernel mode is:.
- Faster typing
- Better graphics
- Protection and security (isolation of critical code)
- More storage
Answer: c, Protection and security (isolation of critical code)
Solution: Prevents apps from crashing/compromising the whole system.
Q20. If an application tries to access protected memory, the OS will typically:.
- Ignore it
- Give admin access
- Raise an exception/segmentation fault and stop/handle the process
- Format the disk
Answer: c, Raise an exception/segmentation fault and stop/handle the process
Solution: Memory protection enforced by hardware + kernel -> traps/interrupts.