Operating Systems: Functions, Types, Booting, Windows and MCQs
The operating system (OS) is the system software that manages the hardware and lets users and programs use the computer. Job tests for computer operators, data entry and IT posts ask what an OS does, how batch, time-sharing and real-time systems differ, what happens during booting, how files and folders are handled in Windows, and basic ideas of processes and memory. The questions are short and factual, so a clear picture of each idea is enough.
Asked in: PPSC, FPSC, NTS, ETEA, KPPSC, SSC, IBPS and ICS/ECAT computer
What an operating system is and does
An operating system is a set of programs that acts as an interface between the user and the hardware and as a manager of all computer resources. Without an OS, every program would have to control the hardware on its own. Common examples are Microsoft Windows, macOS and Linux on computers, and Android and iOS on phones.
Its main functions are process management (creating, scheduling and ending programs), memory management (giving memory to programs and taking it back), file management (organising files and folders on storage), device management (controlling input/output devices through drivers), and security and protection (user accounts, passwords and permissions). It also provides the user interface and detects errors.
The kernel is the core of the OS that stays in memory and directly controls the CPU, memory and devices. The shell is the outer layer through which the user gives commands, either by typing (command line interface, CLI) or with windows, icons, menus and a pointer (graphical user interface, GUI). MS-DOS used a CLI; Windows uses a GUI.
- OS = interface between user and hardware + resource manager
- Functions: process, memory, file, device management; security; user interface
- Kernel = core of the OS; Shell = user interface layer
- CLI: typed commands (MS-DOS); GUI: windows, icons, menus, pointer (Windows)
Types of operating systems
A batch OS collects similar jobs into batches and runs them one after another without user interaction, as in early payroll processing. A multiprogramming OS keeps several programs in memory so the CPU switches to another program whenever one waits for input or output, keeping the CPU busy.
A time-sharing (multitasking) OS gives each user or task a small slice of CPU time in turn, so fast that many users feel they have the computer to themselves. A real-time OS (RTOS) must respond within a strict time limit and is used in industrial control, air-traffic control, medical equipment and anti-lock brakes.
A multiprocessing OS uses two or more CPUs in one computer. A distributed OS manages a group of separate networked computers so they appear to the user as one system. A network OS (such as Windows Server) provides file sharing, printers and user accounts to computers on a network. By users, an OS is single-user or multi-user; by tasks, single-tasking (MS-DOS) or multitasking (Windows, Linux).
- Batch: jobs grouped, no user interaction
- Time-sharing: CPU time slices shared among users
- Real-time: strict time limits (air-traffic control, medical devices)
- Multiprocessing: more than one CPU; Distributed: many networked computers as one
- MS-DOS: single-user, single-tasking, CLI
Booting
Booting is the process of starting a computer and loading the operating system into main memory (RAM). A cold boot starts the computer after it has been completely switched off. A warm boot (restart) reloads the OS without cutting the power, for example by choosing Restart.
When power is turned on, the firmware (BIOS, or UEFI on modern PCs) stored on a non-volatile chip on the motherboard runs first. It performs the POST (Power-On Self-Test) to check the processor, memory, keyboard and other hardware, and reports problems with beeps or messages.
The firmware then finds the boot device (hard disk, SSD or USB drive) and runs the bootloader, which loads the OS kernel into RAM. The kernel starts the drivers and services, and finally the login or desktop screen appears.
- Booting: loading the OS from storage into RAM
- Cold boot: from power off; Warm boot: restart without power off
- Order: power on β BIOS/UEFI β POST β bootloader β kernel β desktop
- POST = Power-On Self-Test
Files, folders and file systems
A file is a named collection of related data stored on a disk, such as a document, picture or program. A folder (directory) holds files and other folders (subfolders), forming a tree. The path gives a file's location: in Windows it starts with a drive letter such as C: and lists each folder in turn, separated by backslash characters.
A file name has a name part and an extension after the dot that shows the file type: .docx (Word), .xlsx (Excel), .pptx (PowerPoint), .pdf, .txt (plain text), .jpg and .png (images), .mp3 (audio), .mp4 (video) and .exe (executable program in Windows).
A file system is the method an OS uses to organise and store files on a disk. Windows uses NTFS for its system drive; FAT32 and exFAT are common on USB drives and memory cards. FAT32 cannot store a single file of 4 GB or larger, which is why exFAT or NTFS is used for large files. Formatting a disk prepares it with a file system and erases what was on it.
- File extension shows type: .docx, .xlsx, .pptx, .exe, .pdf, .jpg
- Windows file systems: NTFS (system drive), FAT32, exFAT
- FAT32: largest single file just under 4 GB
- Formatting = preparing a disk with a file system (erases data)
Windows basics
The Windows desktop is the main screen; along its bottom is the taskbar with the Start button, pinned and open programs, and the notification area with the clock. File Explorer is used to browse, copy, move, rename and delete files and folders. The Control Panel and the Settings app are used to change system settings.
Deleted files from the hard disk go to the Recycle Bin, from where they can be restored until the bin is emptied. Pressing Shift + Delete removes a file permanently without sending it to the Recycle Bin. Files deleted from a USB flash drive are usually not kept in the Recycle Bin.
Task Manager, opened with Ctrl + Shift + Esc, shows running programs and processes and can end a program that is not responding. Useful built-in tools include Disk Cleanup (removes unneeded files), defragmentation or Optimize Drives (rearranges scattered file pieces on a hard disk), and Windows Security (antivirus and firewall).
- Recycle Bin: holds deleted files until emptied
- Shift + Delete: permanent delete, bypasses the Recycle Bin
- Ctrl + Shift + Esc: Task Manager
- Defragmentation: joins scattered pieces of files on a hard disk
Processes and memory management basics
A program is a passive set of instructions stored on disk; a process is a program in execution in memory. A process moves through states: new (being created), ready (waiting for the CPU), running (instructions being executed), waiting or blocked (waiting for input/output or an event) and terminated (finished).
The CPU scheduler decides which ready process runs next. First Come First Served (FCFS) runs processes in order of arrival. Shortest Job First (SJF) picks the shortest burst and gives the minimum average waiting time. Round Robin gives each process a fixed time quantum in turn and is used in time-sharing systems. Priority scheduling runs the highest-priority process first. A deadlock occurs when processes wait forever for resources held by one another; it needs mutual exclusion, hold and wait, no preemption and circular wait at the same time.
For memory, the OS uses paging, which divides a program into fixed-size pages placed in equal-sized frames of RAM. Virtual memory uses part of the disk (the page file in Windows) as an extension of RAM, letting programs larger than physical memory run. When the system spends more time swapping pages than doing useful work, it is called thrashing.
- Process = program in execution
- States: new β ready β running β waiting β terminated
- FCFS, SJF (least average waiting), Round Robin (time quantum), Priority
- Deadlock: mutual exclusion, hold and wait, no preemption, circular wait
- Virtual memory: disk used as extra RAM; thrashing: excessive paging
Solved examples
- Which of the following is NOT a function of an operating system? (A) Memory management (B) Process scheduling (C) Typing a letter (D) Device management
- OS functions are about managing the computer and its resources.
- Memory management (A), process scheduling (B) and device management (D) are core OS functions.
- Typing a letter is done by the user in application software such as MS Word, not by the OS itself.
Answer: (C) Typing a letter - A hospital heart monitor must react to a dangerous reading within milliseconds. Which type of OS is needed? (A) Batch (B) Real-time (C) Time-sharing (D) Network
- The key requirement is a guaranteed response within a strict time limit.
- A real-time OS is designed for exactly this.
- A batch OS (A) runs jobs later without interaction, a time-sharing OS (C) shares the CPU fairly but gives no deadline guarantee, and a network OS (D) is about sharing resources across computers.
Answer: (B) Real-time - Put the booting steps in order: kernel loaded, POST, power on, bootloader runs, BIOS/UEFI starts.
- The power is switched on first, so the firmware (BIOS or UEFI) can begin.
- The firmware performs the POST to test the hardware, then finds the boot device and starts the bootloader.
- The bootloader loads the kernel into RAM.
Answer: Power on β BIOS/UEFI starts β POST β bootloader runs β kernel loaded - Ayesha deletes a file with Shift + Delete instead of Delete. Can she restore it from the Recycle Bin?
- A normal Delete on a hard-disk file moves it to the Recycle Bin, from where it can be restored.
- Shift + Delete bypasses the Recycle Bin and removes the file permanently after a confirmation.
- So the file will not be found in the Recycle Bin.
Answer: No; Shift + Delete bypasses the Recycle Bin - Hamza wants to copy a 6 GB video to a USB drive formatted as FAT32, but Windows refuses. Why, and what can he do?
- FAT32 cannot hold a single file of 4 GB or more; the limit is 4 GB minus one byte.
- The 6 GB file is above this limit, even if the drive has enough free space.
- He can reformat the drive as exFAT or NTFS (after backing up its contents), which support large files.
Answer: FAT32 limits single files to under 4 GB; format the drive as exFAT or NTFS - Three processes arrive at the same time with CPU bursts P1 = 5, P2 = 3, P3 = 1 (ms). Using Round Robin with a time quantum of 2 ms in the order P1, P2, P3, when does each finish?
- 0 to 2: P1 runs (3 left). 2 to 4: P2 runs (1 left). 4 to 5: P3 runs its 1 ms and finishes at 5.
- 5 to 7: P1 runs (1 left). 7 to 8: P2 runs its last 1 ms and finishes at 8.
- 8 to 9: P1 runs its last 1 ms and finishes at 9.
Answer: P3 at 5 ms, P2 at 8 ms, P1 at 9 ms
Exam shortcuts
- If a question describes a strict deadline (missiles, air-traffic control, medical monitors), answer real-time OS.
- Remember the boot chain with one line: power, BIOS/UEFI, POST, bootloader, kernel.
- Shift + Delete means permanent; plain Delete means Recycle Bin (for files on the hard disk).
- A process is a running program; when asked about a program in execution, choose process.
- Time slices or time quantum point to time-sharing and Round Robin; shortest job gives the least average waiting time.
Common mistakes
- Calling MS Word or a browser an operating system. They are application software that runs on the OS.
- Thinking booting means loading the BIOS into RAM. Booting loads the operating system; the BIOS/UEFI is already on its firmware chip.
- Confusing multiprogramming with multiprocessing. Multiprogramming keeps several programs in memory with one CPU; multiprocessing uses more than one CPU.
- Believing a file is erased forever as soon as Delete is pressed. On a hard disk it goes to the Recycle Bin first.
- Treating virtual memory as extra RAM chips. It is disk space used as an extension of RAM, and it is much slower.
Practice MCQs
- Which of the following is an operating system?
A) Linux
B) MS Excel
C) Google Chrome
D) Adobe Reader
Answer: A) Linux β Linux is an operating system that manages the hardware and runs other programs. MS Excel is a spreadsheet program, Google Chrome is a web browser and Adobe Reader is a PDF viewer; all three are application software that run on an operating system. - The core part of an operating system that stays in memory and directly controls the hardware is called the:
A) Shell
B) Desktop
C) Kernel
D) Compiler
Answer: C) Kernel β The kernel is the core of the OS and manages the CPU, memory and devices. The shell is the outer layer through which users give commands, the desktop is part of the graphical interface, and a compiler is a language translator rather than part of the OS. - Restarting a computer without switching off its power is called:
A) Cold booting
B) Formatting
C) Warm booting
D) Logging off
Answer: C) Warm booting β A warm boot reloads the operating system while the power stays on, as when Restart is chosen. A cold boot starts from a completely powered-off state, formatting prepares a disk with a file system, and logging off only ends a user session without reloading the OS. - Which test is performed by the BIOS or UEFI firmware when a computer is switched on?
A) ping
B) POST
C) Defragmentation
D) Disk Cleanup
Answer: B) POST β The Power-On Self-Test (POST) checks the processor, memory and basic hardware at start-up. ping is a network command to test a connection, and defragmentation and Disk Cleanup are Windows maintenance tools that run only after the OS has loaded. - Which key combination deletes a file permanently in Windows without sending it to the Recycle Bin?
A) Ctrl + D
B) Ctrl + X
C) Alt + F4
D) Shift + Delete
Answer: D) Shift + Delete β Shift + Delete removes the selected file permanently after a confirmation. In File Explorer, Ctrl + D sends the file to the Recycle Bin like a normal delete, Ctrl + X cuts the file so it can be pasted elsewhere, and Alt + F4 closes the active window. - A program in execution is called a:
A) File
B) Process
C) Folder
D) Driver
Answer: B) Process β A process is a program that is currently being executed in memory. A file is stored data on a disk, a folder is a container for files, and a driver is software that lets the OS control a device; none of these is a running program by definition. - Which type of operating system is used where a response must come within a strict time limit, as in air-traffic control?
A) Batch OS
B) Real-time OS
C) Time-sharing OS
D) Single-user OS
Answer: B) Real-time OS β A real-time OS guarantees a response within fixed time limits, which air-traffic control and industrial control need. A batch OS processes jobs later without interaction, a time-sharing OS shares CPU time fairly without hard deadlines, and single-user describes how many users an OS supports, not its response time. - Which Windows tool shows running programs and can end one that is not responding?
A) Task Manager
B) Control Panel
C) File Explorer
D) Disk Cleanup
Answer: A) Task Manager β Task Manager lists running applications and processes and has an End task button. Control Panel changes system settings, File Explorer manages files and folders, and Disk Cleanup removes unneeded files; none of them is meant for ending programs. - What does a file extension such as .exe or .xlsx indicate?
A) The size of the file
B) The date the file was created
C) The owner of the file
D) The type of the file
Answer: D) The type of the file β The extension after the dot shows the file type and which program opens it: .exe is a Windows executable and .xlsx is an Excel workbook. The size, the creation date and the owner are file properties stored separately; they are not shown by the extension. - Which file system is normally used for the Windows system drive?
A) NTFS
B) FAT12
C) ISO 9660
D) HFS+
Answer: A) NTFS β Windows is installed on an NTFS drive, which supports permissions, large files and journaling. FAT12 was used on old floppy disks, ISO 9660 is the file system of CD-ROMs, and HFS+ is an older Apple Mac file system. - Which operating system type keeps several programs in main memory so that the single CPU switches to another one whenever the current program waits for input or output?
A) Multiprocessing
B) Multiprogramming
C) Batch processing
D) Distributed
Answer: B) Multiprogramming β Multiprogramming keeps several programs in memory to keep a single CPU busy while one waits. Multiprocessing uses two or more CPUs, batch processing runs grouped jobs one after another, and a distributed OS links several separate computers into one system. - In which process state is a process that is waiting for the CPU to become free?
A) Ready
B) Running
C) Waiting (blocked)
D) Terminated
Answer: A) Ready β A ready process has everything it needs except the CPU. A running process already has the CPU, a waiting or blocked process is waiting for input/output or an event rather than the CPU, and a terminated process has finished. - Which CPU scheduling method gives each process a fixed time quantum in turn?
A) First Come First Served
B) Shortest Job First
C) Priority scheduling
D) Round Robin
Answer: D) Round Robin β Round Robin cycles through the ready processes, giving each the same time quantum, which suits time-sharing. First Come First Served runs each process to completion in arrival order, Shortest Job First picks the smallest burst, and priority scheduling chooses by priority, so none uses a fixed rotating quantum. - Three jobs arrive together with burst times 6, 3 and 9 ms and are run by First Come First Served in that order. What is the average waiting time?
A) 6 ms
B) 4 ms
C) 5 ms
D) 9 ms
Answer: C) 5 ms β The first job waits 0, the second waits 6 and the third waits 6 + 3 = 9, so the average is 15 Γ· 3 = 5 ms. 6 ms is the average burst time, 4 ms is what Shortest Job First would give (waits 0, 3 and 9), and 9 ms is only the waiting time of the last job. - When a computer spends more time moving pages between RAM and disk than executing programs, this is called:
A) Booting
B) Deadlock
C) Thrashing
D) Spooling
Answer: C) Thrashing β Thrashing is excessive paging, which makes the system very slow. Booting is starting the computer, a deadlock is processes waiting forever for each other's resources, and spooling is placing jobs such as print jobs in a queue on disk for a slower device.
Questions
What is the main purpose of an operating system?
It manages the computer's hardware and software resources and provides an interface so users and programs can use the computer without controlling the hardware directly.
What is the difference between cold and warm booting?
Cold booting starts the computer from a fully switched-off state. Warm booting restarts it and reloads the OS while the power stays on.
Is Android an operating system?
Yes. Android is a mobile operating system built on the Linux kernel. iOS is Apple's mobile operating system.
Which OS topics are asked most in computer operator tests?
Definitions and functions of an OS, types of OS, booting and POST, file extensions, the Recycle Bin and common Windows tools, with a few questions on processes and memory in IT officer papers.