Subjects · Leaving Cert Computer Science
Leaving Cert Computer Science: Testing & debugging
How often Testing & debugging comes up on the Computer Science papers, every year it was asked, and questions to try.
HL Asked on 4 of the last 5 Higher Level papers, most recently in 2025. most years
OL Asked on 4 of the last 5 Ordinary Level papers, most recently in 2025. most years
Quick ones on Testing & debugging.
- Logic error
- Syntax error
- Runtime error
- SyntaxError
- TypeError
- IndexError
- Logic error
- Hardware error
- Syntax error
Show the answers
(a) Syntax error
(b) IndexError
(c) Logic error
Higher Level
Asked on 4 of the last 5 Higher Level papers, most recently in 2025. most years
Every paper, year by year
| Year | Where it came up |
|---|---|
| 2025 | A9 |
| 2024 | A6 |
| 2023 | A12 |
| 2022 | Not asked |
| 2021 | B13 |
Links open the State Examinations Commission’s paper for that year.
More Testing & debugging questions
Testing & debugging, 2 marks
What is system testing?
- Testing one function on its own
- Checking only the colours of the screens
- Testing the whole system working together
Show the answer
Testing the whole system working together
System testing checks the complete program against its requirements, after the separate units have been tested and joined together.
Testing & debugging, 2 marks
What does a breakpoint in a debugger do?
- Fixes the error on that line
- Pauses the program at a chosen line
- Deletes the line it is placed on
Show the answer
Pauses the program at a chosen line
At a breakpoint you can inspect the values of variables, then step through the code line by line to find where it goes wrong.
Testing & debugging, 3 marks
score has never been given a value. What error does print(score) raise?
- NameError
- TypeError
- IndexError
Show the answer
NameError
Python does not know the name score because nothing was ever assigned to it. A misspelt variable name causes the same NameError.
Ordinary Level
Asked on 4 of the last 5 Ordinary Level papers, most recently in 2025. most years
Every paper, year by year
| Year | Where it came up |
|---|---|
| 2025 | A12, B14 |
| 2024 | B13, B14 |
| 2023 | B14 |
| 2022 | B14 |
| 2021 | Not asked |
Links open the State Examinations Commission’s paper for that year.
More Testing & debugging questions
Testing & debugging, 2 marks
A missing colon after an if line is a…
- Logic error
- Runtime error
- Syntax error
Show the answer
Syntax error
A syntax error breaks the rules of the language, so the program won't run at all. Python points to the line with the problem.
Testing & debugging, 2 marks
A program runs but works out the average wrongly. This is a…
- Hardware fault
- Logic error
- Syntax error
Show the answer
Logic error
Logic errors give wrong results with no error message, e.g. dividing by the wrong count. Trace tables and test data help find them.
Testing & debugging, 2 marks
Dividing by zero while a program is running gives a…
- Runtime error
- Syntax error
- Hardware fault
Show the answer
Runtime error
Runtime errors crash a program that started fine, e.g. ZeroDivisionError, IndexError, or int('abc') giving a ValueError.
Other Computer Science topics
- Abstraction & pattern recognition
- Binary & hexadecimal
- CPU, memory & storage
- Embedded systems & sensors
- Ethics & social impact
- Flowcharts & pseudocode
- Internet, WWW & protocols
- Loops & trace tables
- Problem solving & puzzles
- Selection & Boolean logic
- Universal design & accessibility
- Variables, data types & operators
- Algorithmic complexity
- Data analytics & data quality
- Functions & modules
- Logic gates & truth tables
- Roles, teams & stakeholders
- Searching algorithms
- AI & machine learning
- ASCII & Unicode
- Design process & SDLC
- History & emerging trends
- Lists
- Privacy & cybersecurity
- Basic electronics
- Databases
- Modelling & simulation
- Operating systems
- Quicksort
- Recursion
- Sorting algorithms
- Strings & string methods
- Heuristics
- Turing machines