Interpreter error reporting
An interpreter runs code line by line and halts at the first error it finds, reporting only that one. Earlier lines have already run. Later errors stay hidden until you fix it and run again.
Understanding Interpreter error reporting in IGCSE Computer Science Paper 1
What it does: A and B are printed first, because those lines ran fine. The interpreter then stops at the broken third line. Only one error is shown at a time. The student must fix it and re-run to see whether another error comes next. An interpreter halts as soon as it meets an error and reports it. It does not carry on to find more. Each run stops at the first error it finds. The programmer fixes it and runs again, so finding 3 errors takes at least 3 runs.
Common mistakes: The closing bracket is missing, so the interpreter stops at line 1 and reports this error. No lines have run, and any mistakes later in the program stay hidden. The line should end with two brackets: input('Name: '). num is text, so adding 1 gives a run-time error. The interpreter has already run line 1, stops at line 2 and never reaches line 3. The fix is int(num) + 1, then run again.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 430–439) and word search (Modules 419–439).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
stops at first errorFill in the Blanks
Spot the Error
Student with a class code? Join your class →