Skip to content
Cambridge IGCSE0984

Types of software and interrupts

Computer Science 0984 Chapter Notes

Last updated November 2026

What this chapter covers

Types of programming language, translators and integrated development environments (IDEs)
ShareWhatsAppPost

Types of software and interrupts notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Types of software and interrupts notes as text: skim, search, and jump between subtopics.

~23 min read

1. System software and application software

System software provides the services that the computer requires. It includes the operating system and utility software.

Application software provides the services that the user requires.

To explain the difference, say what each one does. System software manages and maintains the hardware and software. Application software allows the user to perform tasks.

Examiner insight

“Some candidates described system software as performing tasks for the computer which required additional detail as to what the system software provides for the computer because all software instructs the computer to perform actions.” “Some candidates confused the two types of software and provided a mixed response or a completely incorrect response.”

Worked example 12 marks

A computer has system software and application software.

(a) Explain how system software is different to application software.

  1. 1

    system software manages / maintains the hardware / software [1]

  2. 2

    application software allows the user to perform tasks [1]

2. What an operating system does

An operating system is one type of system software. Its basic functions are managing files, handling interrupts, providing an interface, managing peripherals and drivers, managing memory, managing multitasking, providing a platform for running applications, providing system security and managing user accounts.

A role says what a function does. Managing peripherals means handling or installing device drivers, and receiving data from and transferring data to the devices. Providing an interface allows a user to communicate with the computer. Managing memory makes sure that two processes do not access the same memory location at the same time. Managing user accounts allows the user to set a username and password.

Examiner insight

“Many candidates gave a vague response, such as input/output. This needs further clarification, such as manages inputs and outputs devices.” “Many candidates listed, or described, other operating system tasks. For example, that it provides file management and memory management, instead of focusing only on the task of managing peripherals.”

Worked example 14 marks

(d) One function performed by the operating system is managing peripherals. A role of this function is to install the drivers needed for the optical mouse.

Complete the table with the missing functions and roles of an operating system.

functionrole
providing an interface……
……It makes sure that two processes do not access the same memory location at the same time.
managing interrupts……
……It allows the user to set a username and password.
  1. 1

    providing an interface: to allow a user to communicate / interact with the computer [1]

  2. 2

    managing memory [1]

  3. 3

    managing interrupts: checks the source of the interrupt, or any other point from block 5 [1]

  4. 4

    managing (user) accounts, or providing / managing (system) security [1]

3. Hardware, firmware and the operating system

Hardware, firmware and an operating system are all required to run application software. Applications are run on the operating system. The operating system is run on the firmware. The bootloader (firmware) is run on the hardware.

Firmware is instructions written into non-volatile / read only memory (ROM). It is used to configure, set up, control or run the hardware. It provides the operating system with a platform to run.

The operating system manages the hardware and provides a platform for application software to run.

Examiner insight

“Some candidates identified firmware as being hardware or gave an example of what could be stored as part of the firmware for example that firmware is the BIOS.” “Some candidates gave a list of management functions for the operating system or repeated the earlier question that it manages peripherals.”

Worked example 12 marks

(d) Define the terms firmware and operating system.

  1. 1

    firmware, any one from: instructions / software used to configure / set up / control / run hardware; written into non-volatile / read only memory / ROM; provides the OS with a platform to run [1]

  2. 2

    operating system, any one from: instructions / software that manages hardware; provides an interface between the user and the hardware; provides a platform for application software to run [1]

4. What an interrupt is and what causes one

An interrupt is a signal sent to the CPU. It is generated by hardware or by software.

Hardware interrupts include pressing a key on the keyboard and moving the mouse. Software interrupts include division by zero and two processes trying to access the same memory location. Say what happens to cause the interrupt. The name of a device is not an example.

Interrupts are needed for multitasking, for stopping the current process and for prioritising actions. An interrupt is not only an error message: pressing a key generates one.

Examiner insight

“Some candidates gave response such as ‘keyboard’ or ‘mouse’. These are just devices and not examples of interrupt.” “However, some candidates demonstrated only a vague understanding, providing statement such as it stops processes.”

Worked example 12 marks

Give one example of a hardware interrupt and one example of a software interrupt.

  1. 1

    hardware, any one from: pressing a key on the keyboard; moving the mouse [1]

  2. 2

    software, any one from: division by zero; two processes trying to access the same memory location [1]

5. How an interrupt is handled

Handling interrupts is a function of the operating system. It checks the source of the interrupt. It assigns or checks the priority of the interrupt, finds the highest priority interrupt and decides which interrupts to action.

It controls or checks the interrupt queue. It calls the interrupt service routine (ISR), which is used to handle the interrupt.

Examiner insight

“Few candidates were able to describe how the operating system handles interrupts. The most common correct answer given was that it gives an interrupt a priority.” “Most candidates gave a vague statement about a key being pressed and analogue data being converted to digital data.”

Worked example 14 marks

Describe how an operating system manages interrupts.

  1. 1

    checks the source of the interrupt [1]

  2. 2

    assigns / checks the priority, to find the highest priority interrupt [1]

  3. 3

    controls / checks the interrupt queue [1]

  4. 4

    calls the interrupt service routine (ISR) [1]

Recap

  • System software provides the services the computer requires: the operating system and utility software.
  • Application software provides the services the user requires.
  • The operating system manages files, interrupts, the interface, peripherals and drivers, memory, multitasking, security and user accounts. It is the platform for running applications.
  • Applications run on the operating system. The operating system runs on the firmware. The bootloader (firmware) runs on the hardware.
  • An interrupt is a signal sent to the CPU. Hardware examples: pressing a key, moving the mouse. Software examples: division by zero, two processes trying to access the same memory location.
  • The operating system handles an interrupt by checking its source, checking its priority, checking the interrupt queue and calling the interrupt service routine.

6. High-level and low-level languages

A high-level language is written in English-like statements. It needs translating before it can be run. It is machine independent: the same program can be used on any computer.

A low-level language is closer to binary or machine code. It has little abstraction from the language a computer processes. Examples are assembly language and machine code.

Examiner insight

“The question asked what is meant by the high-level language, but many candidates instead gave benefits instead, for example that it is easier to read, without giving the feature that makes it easier to read.” “Candidates needed to demonstrate an understanding of the computer executing, processing, or running, the code because a computer cannot ‘understand’ code.”

Worked example 12 marks

The programmer is using a high-level language to write the program. Describe what is meant by a high-level language.

  1. 1

    It is written in human / English-like statements. [1]

  2. 2

    It needs translating to be run / executed. (Or: it is portable, so it can be used on any computer.) [1]

7. Choosing between them

A low-level language can directly manipulate the hardware. Its programs run faster and use memory more efficiently. They are harder for humans to read, write and debug, and they are not portable. A low-level language normally has one instruction per line.

A high-level language is easier to read, write, understand and debug. It is machine independent. It may run more slowly, because it has to be translated, and it uses memory less efficiently. One high-level statement can hold several instructions.

Examiner insight

“Some candidates made a vague reference to the program taking up less space, but this was not detailed enough for a mark; reference to memory needed to be present.” “Many gave answer based upon it making the program more secure from hackers.”

Worked example 14 marks

A student develops a program for their computer science project using a high-level language. Explain two differences between a high-level language and a low-level language.

  1. 1

    A high-level language cannot directly manipulate the hardware … [1]

  2. 2

    … but a low-level language can directly manipulate the hardware. [1]

  3. 3

    A high-level language program is portable / machine independent … [1]

  4. 4

    … but a low-level language program is not portable / machine independent. [1]

8. Assembly language and the assembler

Assembly language is a form of low-level language. It uses mnemonics.

An assembler is needed to translate an assembly language program into machine code.

Worked example 13 marks

A programmer uses a low-level language to write a program for a vending machine.

Identify two examples of a low-level language. Give an example of a translator that can be used for a low-level language.

  1. 1

    Assembly (language). [1]

  2. 2

    Machine code (or binary, or object code). [1]

  3. 3

    Assembler. [1]

9. Compiler and interpreter

A compiler and an interpreter both translate a high-level language into machine code.

A compiler translates the whole code at once before it is executed. It produces an executable file. It gives an error report for the whole code if errors are detected.

An interpreter translates and executes the code line by line. It stops when it finds an error.

Examiner insight

“It would also be beneficial for candidates to understand that an error report is produced at the end of translation with a compiler, but errors are reported, during runtime, as they are encountered with an interpreter.”

Worked example 14 marks

The table contains statements about compilers and interpreters. Two of the statements in the table are not correct.

Give the letter of each incorrect statement. Suggest a corrected statement for each.

letterstatement
AAn interpreter translates and executes the code one variable at a time.
BA compiler displays an error report when it is unable to run the code due to syntax errors.
CAn interpreter stops translating as soon as it finds an error in the code.
DA compiler translates the whole code at once and then it is executed.
EA compiler produces a non-executable file.
  1. 1

    Incorrect statement: A. [1]

  2. 2

    An interpreter translates and executes the code one line / statement at a time. [1]

  3. 3

    Incorrect statement: E. [1]

  4. 4

    A compiler produces an executable file. [1]

10. Choosing a translator

An interpreter is mostly used when developing a program. It can run sections of the code before the whole program is complete. It stops at an error and displays it, so the programmer can debug as the program runs.

A compiler is used to translate the final program. Its error report lists errors so they can be fixed together. It produces an executable file that can be tested many times without retranslating. The final program executes faster, because the compiler optimises the code.

Examiner insight

“The stronger responses identified the ability to perform real time debugging and to only run sections of the code without the need for it to all be complete and accurate.” “Some candidates described the error report as making it easier for the user to correct the errors, the compiler does not help the user to correct the error, the user is still required to debug the program.”

Worked example 13 marks

The programmer uses a compiler during the development of the program. Describe the benefits of using a compiler when developing the program.

  1. 1

    It produces an error report … [1]

  2. 2

    … so all errors can be fixed together. [1]

  3. 3

    It produces an executable file, so the program can be tested multiple times without retranslating. [1]

11. The role of an IDE

An integrated development environment (IDE) is used to write program code. Its common functions are:

Code editor: write and change the program. Run-time environment: run the code and see the output. Translators: translate the code.

Error diagnostics: find errors in the code. Auto-completion: gives options to complete a command word or identifier. Auto-correction: corrects spelling errors in the code. Prettyprint: changes the colour of command words and identifiers so they are easier to identify.

Examiner insight

“Some candidates incorrectly gave functions of an operating system instead of an IDE.” “Candidates need to describe the role of the function beyond rewording the function.”

Worked example 14 marks

A translator is one function of an IDE. Identify two other functions of an IDE. State the purpose of each function.

  1. 1

    Code editor. [1]

  2. 2

    It allows the programmer to write or change the program. [1]

  3. 3

    Run-time environment. [1]

  4. 4

    It allows the user to run the code and see the output, or to test the code. [1]

Recap

  • High-level: English-like statements, needs translating, machine independent.
  • Low-level: closer to machine code, can directly manipulate hardware, uses memory efficiently, harder to read and debug.
  • Assembly language is low-level and uses mnemonics. An assembler translates it to machine code.
  • Compiler: translates the whole code at once, gives an executable file and an error report.
  • Interpreter: translates and executes line by line, stops at an error.
  • Interpreter while developing. Compiler for the final program.
  • IDE: code editor, run-time environment, translators, error diagnostics, auto-completion, auto-correction, prettyprint.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State whether an operating system is system software or application software.1 mark
    Answer
    1. System software [1].

    Trap: Examiners reported candidates confusing the two types of software.

  2. A school installs a spreadsheet program so that students can do their coursework. State which type of software it is and give a reason.2 marks
    Answer
    1. Application software [1].
    2. It provides a service the user requires, or it allows the user to perform a task [1].

    Trap: Saying system software because the program performs tasks for the computer, which all software does.

  3. Give two functions of an operating system.2 marks
    Answer
    1. Any two from: managing files, handling interrupts, providing an interface, managing peripherals and drivers, managing memory, managing multitasking, providing a platform for running applications, providing system security, managing user accounts [1 each].

    Trap: A vague answer such as “input / output” or “it controls the system” is not a specific function.

  4. State what is meant by firmware.2 marks
    Answer
    1. Instructions written into non-volatile / read only memory (ROM) [1].
    2. They are used to configure, set up, control or run the hardware, or they provide the operating system with a platform to run [1].

    Trap: Examiners reported candidates calling firmware hardware, or giving the BIOS as an example in place of a definition.

  5. A student is asked for one example of a hardware interrupt and one example of a software interrupt. The student writes “keyboard” and “mouse”. Neither earns a mark. Write two answers that would earn the marks.2 marks
    Answer
    1. Hardware: pressing a key on the keyboard, or moving the mouse [1].
    2. Software: division by zero, or two processes trying to access the same memory location [1].

    Trap: Correcting both answers to hardware interrupts: “keyboard” and “mouse” are only devices, and the second answer must be a software interrupt.

  6. Name the operating system function that does each job. A: it allows a user to set a username and password. B: it makes sure two processes do not access the same memory location at the same time. C: it installs the drivers needed for a printer.3 marks
    Answer
    1. A: managing user accounts, or providing system security [1].
    2. B: managing memory [1].
    3. C: managing peripherals [1].

    Trap: Examiners reported candidates mixing up the names of operating system functions, such as interrupts and memory management.

  7. A user is typing in a word processor while a file downloads. Explain why the computer needs interrupts.3 marks
    Answer
    1. To stop the current process when a key is pressed [1].
    2. To allow multitasking: here, the typing and the download [1].
    3. To prioritise actions, so the computer decides which to deal with first [1].

    Trap: Giving an example of an interrupt, or calling it an error message for the user, when the question asks why interrupts are needed.

  8. A printer runs out of paper while printing a document and generates an interrupt. Describe what happens next, up to the point where the interrupt is dealt with.4 marks
    Answer
    1. The interrupt signal is sent to the CPU [1].
    2. The operating system checks the source of the interrupt [1].
    3. It assigns or checks the priority of the interrupt [1].
    4. It calls the interrupt service routine to handle the interrupt [1].

    Trap: A vague statement about what the user sees gives no technical description of what the operating system does.

  9. A games console has a controller, a bootloader stored in ROM, an operating system and a racing game. (a) A student labels the bootloader as hardware and the racing game as system software. Give the correct label for each. (b) The bootloader is damaged and will not run. Explain why the racing game cannot run.5 marks
    Answer
    1. (a)
    2. The bootloader is firmware [1].
    3. The racing game is application software [1].
    4. (b)
    5. The operating system is run on the firmware, which provides it with a platform to run [1].
    6. With no bootloader running, the operating system cannot run [1].
    7. Applications are run on the operating system, so the game has no platform to run on [1].

    Trap: Examiners reported candidates identifying firmware as hardware, which hides the middle link: the game needs the operating system, and the operating system needs the firmware.

  10. A weather station computer runs a logging program. Three events happen in the same second. Event 1: the logging program divides a total by a count of 0. Event 2: the logging program and another process try to access the same memory location. Event 3: a technician presses a key on the keyboard. (a) State the type of interrupt each event generates. (b) One operating system function has the role of making sure that Event 2 does not happen. Name this function. (c) Describe how the operating system decides which of the three interrupts to action first, and what it does to handle them.7 marks
    Answer
    1. (a)
    2. Event 1: a software interrupt [1].
    3. Event 2: a software interrupt [1].
    4. Event 3: a hardware interrupt [1].
    5. (b)
    6. Managing memory [1].
    7. (c)
    8. Any three of these four points, 1 mark each [3].
    9. It checks the source of each interrupt.
    10. It assigns or checks the priority of each one and finds the highest priority interrupt.
    11. It controls the interrupt queue, where the other interrupts are held.
    12. It calls the interrupt service routine for each interrupt, highest priority first.

    Trap: Examiners reported candidates mixing up interrupts and memory management: Event 2 generates a software interrupt, but making sure it does not happen is the role of managing memory.

  11. Name the translator needed to translate an assembly language program into machine code.1 mark
    Answer
    1. Assembler.

    Trap: A compiler translates a high-level language, not assembly language.

  12. State what is meant by a high-level language.2 marks
    Answer
    1. It is written in human / English-like statements [1].
    2. It needs translating before it can be run [1].

    Trap: Writing ‘it is easier to read’ gives a benefit, not what the language is.

  13. A student says: ‘Assembly language needs no translation because it is already machine code.’ Give two reasons why the student is wrong.2 marks
    Answer
    1. Assembly language is low-level and uses mnemonics [1].
    2. An assembler is needed to translate it into machine code [1].

    Trap: Low-level does not mean machine code: assembly language is not binary.

  14. A programmer writes the control program for a washing machine in a low-level language. Give two reasons for this choice.2 marks
    Answer
    1. It can directly manipulate the hardware [1].
    2. The program uses memory more efficiently / runs faster [1].

    Trap: ‘It is more secure from hackers’ is not a reason: give a benefit such as direct manipulation of the hardware.

  15. Describe how an interpreter translates a program and what it does when it finds an error.3 marks
    Answer
    1. An interpreter translates and executes the code line by line [1].
    2. It stops when the error is found and displays it [1]. It does not move on until it is corrected [1].

    Trap: ‘It shows the errors one at a time’ could mean it lists them all: say that it stops at the error.

  16. A company has finished a program and will give a copy to its customers. Explain why the programmer should use a compiler to translate the final program.3 marks
    Answer
    1. A compiler produces an executable file [1], so customers can run it without needing the translator [1].
    2. The final program executes faster, because the compiler optimises the code [1].

    Trap: ‘It is faster’ alone earns nothing: say why.

  17. A student is writing a long program and has finished only the first section. Explain why an interpreter is useful during development.3 marks
    Answer
    1. It can run sections of the code without the whole program being complete [1].
    2. It stops when it finds an error and displays it, so the student can debug in real time [2].

    Trap: Describing how an interpreter works does not answer ‘why it is useful’.

  18. A programmer types the first letters of an identifier and the IDE offers a list of identifiers to finish it. The IDE also changes the colour of command words. Name each IDE function and state its purpose.4 marks
    Answer
    1. Auto-completion [1].
    2. It gives options to complete the rest of the identifier, to limit errors or speed up development [1].
    3. Prettyprint [1].
    4. It changes the colour of command words so they are easier to identify [1].

    Trap: ‘Auto-completion completes the code’ only rewords the name. Give its purpose.

  19. A programmer tests this program. Lines 3 and 5 each contain a syntax error. ``` OUTPUT "Enter mass" INPUT Mass Weight ← Mass * OUTPUT "Weight is" OUTPUT Weight + OUTPUT "Done" ``` (a) The programmer runs the program using an interpreter and is ready to type 12. Describe what happens. (b) The programmer changes line 3 to `Weight ← Mass * 9.8` and makes no other change. Describe what happens when the program is run using the interpreter again. (c) The programmer translates the original program using a compiler instead. Describe how the errors are reported and give one benefit of this to the programmer.6 marks
    Answer
    1. (a)
    2. Lines 1 and 2 are translated and executed: ‘Enter mass’ is output and 12 is input [1]. The interpreter stops at line 3 and reports that error. The error in line 5 is not reported [1].
    3. (b)
    4. Lines 1 to 4 are translated and executed, so ‘Enter mass’ and ‘Weight is’ are output [1]. The interpreter stops at line 5 and reports that error. ‘Done’ is not output [1].
    5. (c)
    6. The whole code is translated before any of it is executed. One error report gives both errors, lines 3 and 5, and nothing is output [1]. Both errors can be fixed together [1].

    Trap: An interpreter does not list both errors one after the other: it stops at the first and does not move on until it is corrected.

  20. A company makes a doorbell camera. Its program is written in assembly language using an IDE. A trainee writes four notes about the project. Each note would earn no mark in an exam. Note 1: ‘Assembly language was chosen because it makes the program more secure from hackers.’ Note 2: ‘The assembler translates the program so that the camera can understand it.’ Note 3: ‘The assembly language program takes up less space.’ Note 4: ‘Auto-completion auto-completes the code.’ (a) Rewrite each note so that it would earn the mark. (b) The company rewrites the program in a high-level language so that it can be used in cameras with different hardware. State the feature of a high-level language that allows this. Give two disadvantages of the change for the program.7 marks
    Answer
    1. (a)
    2. Note 1: assembly language can directly manipulate the camera’s hardware [1]. Note 2: the assembler translates the assembly language program into machine code so that the camera can execute it [1].
    3. Note 3: the program uses memory more efficiently [1]. Note 4: auto-completion gives options to complete the remainder of a command word or identifier [1].
    4. (b)
    5. A high-level language is machine independent / portable [1]. The program can no longer directly manipulate the hardware [1]. It uses memory less efficiently, or it may be slower to execute [1].

    Trap: A right idea in vague words earns nothing: a computer does not ‘understand’ code, ‘less space’ needs a reference to memory, and a purpose must not reword the function’s name.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
Interrupt: ‘keyboard’ or ‘mouse’pressing a key on the keyboard, or moving the mouse
System software performs tasks for the computer.System software manages / maintains the hardware and software.
The operating system does input / output.The operating system manages hardware devices / peripherals.
Firmware is hardware. Firmware is the BIOS.Firmware is instructions written into non-volatile / read only memory (ROM), used to control or run the hardware.
A high-level language is easier to read.A high-level language is written in English-like statements.
A low-level program takes up less space.A low-level program uses memory more efficiently.
The code is translated so the computer can ‘understand’ it.The code is translated so the computer can execute it.
The interpreter shows the errors one at a time.The interpreter stops when it finds an error and displays that error.

Frequently asked questions

What is the difference between system software and application software?
System software provides the services that the computer requires, and it manages and maintains the hardware and software. Application software provides the services that the user requires, so it allows the user to perform tasks. System software includes the operating system and utility software.
What are the functions of an operating system?
An operating system manages files, handles interrupts, provides an interface, manages peripherals and drivers, manages memory, manages multitasking, provides a platform for running applications, provides system security and manages user accounts. Each function has a role: managing memory makes sure that two processes do not access the same memory location at the same time.
What is firmware?
Firmware is instructions written into non-volatile or read only memory (ROM). It is used to configure, set up, control or run the hardware, and it provides the operating system with a platform to run. Firmware is not hardware, and the BIOS is only an example of it.
What is an interrupt, and what are some examples?
An interrupt is a signal sent to the CPU. Hardware interrupts include pressing a key on the keyboard and moving the mouse. Software interrupts include division by zero and two processes trying to access the same memory location.
How does the operating system handle an interrupt?
The operating system checks the source of the interrupt, and it assigns or checks the priority of the interrupt to find the highest priority interrupt. It controls or checks the interrupt queue, and it calls the interrupt service routine (ISR), which is used to handle the interrupt.
What is a common mistake when giving examples of hardware and software interrupts?
A common mistake is to give a device, such as a keyboard or a mouse, as an example. These are only devices and not examples of interrupt. A hardware interrupt is pressing a key on the keyboard or moving the mouse, and a software interrupt is division by zero.
What is a high-level language?
A high-level language is written in English-like statements. It needs translating before it can be run, and it is machine independent, so the same program can be used on any computer. A low-level language is closer to binary or machine code.
What is the difference between a high-level language and a low-level language?
A low-level language can directly manipulate the hardware, and its programs run faster and use memory more efficiently. A high-level language is easier to read, write, understand and debug, and it is machine independent. A low-level language is harder to debug and is not portable.
What is an assembler, and what does it translate?
An assembler is needed to translate an assembly language program into machine code. Assembly language is a form of low-level language that uses mnemonics. A compiler translates a high-level language, not assembly language.
What is the difference between a compiler and an interpreter?
A compiler translates the whole code at once before it is executed, and it produces an executable file. An interpreter translates and executes the code line by line, and it stops when it finds an error. A compiler gives an error report for the whole code.
Why does a programmer use an interpreter during development and a compiler for the final program?
An interpreter can run sections of the code before the whole program is complete, and it stops at an error so the programmer can debug as the program runs. A compiler is used for the final program. Its error report lists all the errors so they can be fixed together, and the final program executes faster because the compiler optimises the code.
What is a common mistake when describing what a compiler does?
A common mistake is to describe the benefits of a compiler rather than its operation. Candidates need to say that a compiler translates the whole code at once. Errors are reported during runtime with an interpreter, but at the end of translation with a compiler.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters