Syntax errors and run-time errors reported by translators
Code that breaks the rules of the language, like a missing bracket. The translator reports it and its line. A run-time error only occurs when the program runs.
Understanding Syntax errors and run-time errors reported by translators in IGCSE Computer Science Paper 1
What it does: The command print is misspelt as pritn. The translator does not recognise it and reports a syntax error. This code is valid, so no error is reported. Without brackets the answer is wrong, because the division is done first. This is a logic error. Translators report syntax errors and usually give the line number to help the programmer fix them. The code follows the language rules, but dividing by zero is impossible while the program is running. That is a run-time error.
Common mistakes: The closing bracket is missing, which breaks the rules of the language. This is a syntax error and the translator reports it with its line number. It should be name = input("Name: "). An if statement needs a colon at the end of the line. Without it the translator reports a syntax error on this line. It should be if age < limit:.
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
syntax errorFill in the Blanks
Spot the Error
Student with a class code? Join your class →