- Practice
- About 14 min
- 5 practice questions
Practice: operating system functions, types and booting
Answer exam-style questions on what an operating system does, tell apart multitasking, multiprocessing, time-sharing, batch and real-time systems, and get booting and kernel-versus-shell questions right.
If something looks wrong, please tell us.
Operating system questions are mostly about telling similar words apart: kernel or shell, multitasking or multiprocessing, cold or warm boot. This practice lesson gives you a clue table, the traps that cost marks and worked examples, then a check. It builds on the foundation lessons of the CCC course's chapter on GUI-based operating systems.
Clue table
| Clue in the question | Term |
|---|---|
| Core of the OS, controls hardware directly | Kernel |
| Takes the user's commands and passes them to the kernel | Shell |
| One CPU switches quickly between several programs | Multitasking |
| Two or more CPUs (or cores) work at the same time | Multiprocessing |
| Several programs kept in memory so the CPU is kept busy | Multiprogramming |
| Many users at terminals each get a small slice of CPU time in turn | Time-sharing |
| Jobs collected and run together with no user interaction | Batch processing |
| Must respond within a strict, fixed time | Real-time OS |
| Print jobs wait in a queue on disk so the CPU need not wait for the printer | Spooling |
| Hardware check when the power comes on | POST (Power-On Self-Test) |
| Start from power off / restart with power on | Cold boot / warm boot |
| Lets the OS control one particular device | Device driver |
Traps to avoid
- The BIOS or UEFI is firmware, not the operating system. It checks the hardware and hands over to the OS.
- Multitasking is not multiprocessing. Multitasking can happen on one CPU; multiprocessing needs more than one.
- Android is an operating system, not an app, and it is built on the Linux kernel.
- Device drivers are system software, even though each one serves a single device.
- Shutting down from the menu and pressing Restart are different: only Restart is a warm boot.
- The OS does not create your content. Typing the words of a letter is the user's job in an application.
Worked example 1: name the system
Question: 'At a railway reservation office, many clerks at different terminals use one central computer, and each gets a small turn of the CPU so that all feel they have it to themselves.' Key words: many users, small turn each. The clue table gives time-sharing. Check the trap: this is not multiprocessing, because nothing is said about several CPUs. Answer: time-sharing (multi-user) operating system.
Worked example 2: the print queue
Question: 'Five people send documents to one printer. The documents are stored on disk and printed one by one while the computer goes on with other work. What is this called?' Step 1: notice the queue on disk. Step 2: notice that the CPU does not wait for the slow printer. Step 3: the clue table gives spooling. Answer: spooling.
Worked example 3: statements on booting
Statement 1: 'POST is carried out by the operating system after the desktop appears.' Statement 2: 'The boot loader loads the kernel into RAM.' Statement 1 is false: the POST is run by the firmware before the operating system is loaded. Statement 2 is true. Answer: only statement 2.
Kernel = core; shell = interface. Multitasking = one CPU, many programs; multiprocessing = many CPUs. Time-sharing = many users, slices of time. Real-time = fixed deadline. Spooling = print queue. POST is done by the firmware.
Key takeaways: use the clue table, and watch the pairs that look alike. Firmware starts the computer, the OS takes over after the boot loader, and drivers connect the OS to each device.
Check your understanding
-
1. The part of an operating system that takes the user's commands and passes them to the kernel is the:
- Shell
- BIOS
- Compiler
- Cache
Show answer
Answer: A. The shell is the interface between the user and the kernel; it may be a desktop or a command line. The BIOS is firmware, a compiler translates programs and cache is memory.
-
2. A computer in which two or more CPUs work at the same time is using:
- Multitasking
- Multiprocessing
- Batch processing
- Spooling
Show answer
Answer: B. Multiprocessing means more than one processor working together. Multitasking can happen on a single CPU, batch processing runs collected jobs, and spooling queues output for slow devices.
-
3. Print jobs are stored in a queue on disk and printed one by one while the computer continues with other work. This is called:
- Booting
- Defragmenting
- Spooling
- Formatting
Show answer
Answer: C. Spooling holds jobs for a slow device such as a printer so the CPU does not wait. Booting starts the computer, defragmenting rearranges a disk and formatting prepares a disk for use.
-
4. The Power-On Self-Test (POST) is carried out by:
- The word processor
- The web browser
- The printer
- The firmware (BIOS or UEFI) when the computer is switched on
Show answer
Answer: D. The firmware runs the POST to check basic hardware before the operating system is loaded. Applications and the printer play no part in it.
-
5. Many users at terminals share one computer, each getting a small slice of CPU time in turn. This is a:
- Batch operating system
- Time-sharing operating system
- Real-time operating system
- Single-tasking operating system
Show answer
Answer: B. Time-sharing gives each user short turns of the CPU so that all seem to be served at once. Batch systems have no interactive users, real-time systems meet fixed deadlines, and single-tasking runs one program at a time.
Sign in to keep track of the lessons you finish.