VERIFIED QUESTIONS AND ANSWERS||
ALREADY GRADED A+|| LATEST VERSION
2026
SECTION 1: INTRODUCTION TO OPERATING SYSTEMS
1. What is an operating system?
An operating system is a program that acts as an intermediary between the
user/application programs and the computer hardware. It manages hardware
resources and provides services to application programs.
2. What is the main purpose of an operating system?
The main purpose of an operating system is to manage and control hardware
resources, providing an environment in which other programs can do useful
work.
3. What are the primary functions of an operating system?
The primary functions include: process management, memory management, file
system management, I/O management, security and protection, and user
interface.
4. What is the difference between system software and application
software?
System software (including the OS) manages and controls hardware resources
and provides a platform for applications. Application software performs specific
user-oriented tasks.
5. What is the kernel?
The kernel is the core component of the operating system that manages system
resources, handles memory, processes, and hardware communication. It runs
with full access to hardware in kernel mode.
6. What is the difference between kernel mode and user mode?
Kernel mode has full access to hardware and system resources (privileged
mode). User mode has restricted access and runs applications with limited
privileges.
,7. What is a system call?
A system call is a request made by a user program to the operating system to
perform an operation that the program cannot do directly (e.g., creating a
process, accessing files, performing I/O).
8. What is the command interpreter?
The command interpreter (shell) is a program that gets and executes the next
user-specified command. It checks for valid commands and then runs them.
9. What are the different types of operating systems?
Types include: Batch OS, Time-sharing OS, Distributed OS, Real-time OS,
Network OS, and Multiprogramming OS.
10. What is a real-time operating system (RTOS)?
An RTOS is designed to process data as it comes in, with strict timing
constraints. Hard RTOS requires strict deadlines; soft RTOS allows some
flexibility.
11. What is multiprogramming?
Multiprogramming is a technique that allows multiple programs to reside in
memory simultaneously, increasing CPU utilization by switching between them
when one waits for I/O.
12. What is multitasking?
Multitasking is the ability of an operating system to execute multiple processes
or threads concurrently by rapidly switching between them.
13. What is the bootstrap loader?
The bootstrap loader is the first program stored in ROM that loads the operating
system into memory when the computer is powered on.
14. What is an interrupt?
An interrupt is a signal to the CPU about urgent events (like hardware requests)
that requires immediate attention, causing the CPU to suspend its current task.
15. What is a trap?
A trap is a software-generated interrupt caused by an error (e.g., division by
zero) or a system call request.
16. What is the difference between an interrupt and a trap?
Interrupts are hardware-generated (from external devices), while traps are
software-generated (from programs) and are typically synchronous with
program execution.
, 17. What are the main operating system services?
Services include: program execution, I/O operations, file system manipulation,
communications, error detection, resource allocation, accounting, and
protection/security.
18. What is the difference between a monolithic kernel and a microkernel?
A monolithic kernel runs all OS services in kernel space (faster, but less
modular). A microkernel runs only basic services in kernel space, with other
services in user space (more stable, but slower).
19. What is a hybrid kernel?
A hybrid kernel combines aspects of both monolithic and microkernel
architectures, running some services in kernel space and others in user space for
balance.
20. What is the role of the shell?
The shell is a command-line interpreter that provides an interface between the
user and the operating system, interpreting user commands and executing them.
21. What is the difference between CLI and GUI?
CLI (Command Line Interface) uses text commands; GUI (Graphical User
Interface) uses visual elements like icons and windows for interaction.
22. What is an API in the context of an OS?
An API (Application Programming Interface) provides a set of functions that
application programs can use to request services from the operating system.
23. What is the difference between 32-bit and 64-bit operating systems?
32-bit OS can address up to 4GB of memory; 64-bit OS can address much more
(theoretically 16 exabytes) and supports larger data types.
24. What is the main function of an operating system's I/O subsystem?
The I/O subsystem manages input/output operations, handling device drivers,
buffering, caching, and spooling to improve performance.
25. What is a process in an operating system?
A process is an executing instance of a program, consisting of the program
code, program counter, registers, stack, and data sections.
SECTION 2: PROCESS MANAGEMENT
26. What is a process?
A process is a program in execution. It includes the program code, current
activity (program counter, registers), stack, data section, and heap.