Wimzee Cambridge Academy
← All Revision Notes← IGCSE Computer Science

Software

Revision Notes — IGCSE
CAIE IGCSE Computer Science (0478) • Topic 4 of 10 • Paper 1 & Paper 2
Mastered: 0 / 2

4.1 Types of Software

TypePurposeExamples
System softwareRuns and manages the computer itselfOperating system, device drivers, utilities (anti-virus, backup, disk defragmenter), compilers and interpreters
Application softwareLets the user carry out a taskWord processor, spreadsheet, database, browser, photo editor, games

4.2 The Operating System

The operating system (OS) is system software that manages the hardware and provides an interface between the user and the computer. Without it, applications could not run.

FunctionWhat it does
User interfaceProvides a GUI (windows, icons, menus, pointer) or CLI so the user can interact with the computer
Memory managementDecides which programs get RAM, allocates and frees memory, and handles virtual memory
Multitasking / process managementShares CPU time between processes so several programs appear to run at once
File managementOrganises, names, saves, moves and deletes files and folders; sets access rights
Device driver managementInstalls and communicates with drivers that let the OS control peripherals
SecurityHandles user accounts, passwords, permissions and firewall settings
Interrupt handlingDeals with signals that need immediate attention
Platform for running softwareProvides the services applications need, such as printing and saving

Interrupts

An interrupt is a signal sent to the CPU by hardware or software to request attention. The CPU finishes the current instruction, saves its state, jumps to the interrupt handler, then returns to where it left off. Interrupts are given priorities so that urgent ones (e.g. a power failure or a hardware error) are dealt with first.

4.3 Languages and Translators

LevelDescriptionExamples
High-level languageUses English-like statements; one instruction may do a lot; portable between machines; must be translatedPython, Java, C#, Visual Basic
Low-level languageMachine-oriented; each instruction maps closely to one CPU operation; not portableAssembly language (mnemonics), machine code (binary)

Advantages of high-level languages: easier to read, write and debug; faster to develop; portable; the programmer does not need to know the hardware. Advantages of low-level languages: they give direct control of hardware, produce very efficient code, and are needed for device drivers and embedded systems.

TranslatorHow it worksNotes
CompilerTranslates the whole program into machine code in one go, producing an executable fileErrors are reported at the end; the executable runs without the compiler; source code is not needed at run time
InterpreterTranslates and executes one statement at a timeStops at the first error; slower to run; useful for testing and learning; source code must be present
AssemblerTranslates assembly language mnemonics into machine codeUsed for low-level programs

4.4 IDEs

An integrated development environment (IDE) is software that provides all the tools a programmer needs in one place.

Exam trap

A compiler does not "find all errors before running" in the sense of fixing them — it reports syntax errors and produces no executable until they are fixed. Logic errors are only found by testing.

Five-minute drill

  1. State four functions of an operating system.
  2. Explain why an interrupt is given a priority.
  3. Give two advantages of a compiler over an interpreter.
  4. Give two advantages of a high-level language over assembly language.
  5. Name three features of an IDE that help a programmer.
Exam practice 1[4]

Explain two ways the operating system manages memory when several programs are open at once.

Mark scheme
  • It allocates RAM to each program and keeps track of what is in use (1), freeing memory when a program closes (1).
  • When RAM is full it uses virtual memory (1), swapping pages of data between RAM and secondary storage (1).
Exam practice 2[5]

A student writes a program in Python. Describe how an interpreter and a compiler would each handle this program, and give one advantage of each.

Mark scheme
  • Interpreter: translates and runs the program one statement at a time (1); it stops as soon as an error is found (1). Advantage: easier to debug / good for learning (1).
  • Compiler: translates the whole program into machine code and creates an executable (1); errors are listed at the end. Advantage: the compiled program runs faster and can be distributed without the source code (1).

Quick Reference

System software = OS + drivers + utilities; Application software = user tasks OS: UI, memory, multitasking, files, drivers, security, interrupts Interrupt = signal for attention, handled by priority Compiler = whole program, executable, errors at end Interpreter = line by line, stops at first error Assembler = assembly -> machine code