• 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 words and the terms they point to
Clue in the questionTerm
Core of the OS, controls hardware directlyKernel
Takes the user's commands and passes them to the kernelShell
One CPU switches quickly between several programsMultitasking
Two or more CPUs (or cores) work at the same timeMultiprocessing
Several programs kept in memory so the CPU is kept busyMultiprogramming
Many users at terminals each get a small slice of CPU time in turnTime-sharing
Jobs collected and run together with no user interactionBatch processing
Must respond within a strict, fixed timeReal-time OS
Print jobs wait in a queue on disk so the CPU need not wait for the printerSpooling
Hardware check when the power comes onPOST (Power-On Self-Test)
Start from power off / restart with power onCold boot / warm boot
Lets the OS control one particular deviceDevice 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. 1. The part of an operating system that takes the user's commands and passes them to the kernel is the:

    1. Shell
    2. BIOS
    3. Compiler
    4. 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. 2. A computer in which two or more CPUs work at the same time is using:

    1. Multitasking
    2. Multiprocessing
    3. Batch processing
    4. 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. 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:

    1. Booting
    2. Defragmenting
    3. Spooling
    4. 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. 4. The Power-On Self-Test (POST) is carried out by:

    1. The word processor
    2. The web browser
    3. The printer
    4. 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. 5. Many users at terminals share one computer, each getting a small slice of CPU time in turn. This is a:

    1. Batch operating system
    2. Time-sharing operating system
    3. Real-time operating system
    4. 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.

Privacy · Terms · Refunds · Delivery