Keywords in upper case
IF is a pseudocode keyword. All keywords (IF, ENDIF, WHILE, OUTPUT) are written in upper case and never used as identifier names. Lower case, such as if, is a presentation error.
Understanding Keywords in upper case in IGCSE Computer Science Paper 2
What it does: IF, THEN, OUTPUT and ENDIF are all keywords, so they all appear in upper case in this example. Total is a valid identifier name. Names like IF, WHILE or OUTPUT are keywords and cannot be used for variables. The whole keyword must be in capitals. Mixed case such as Endwhile is also a presentation error.
Common mistakes: OUTPUT is a keyword, so it must be written in upper case. Lower-case output is a presentation error. The line should be OUTPUT "Pass". Every letter of a keyword must be upper case. Output with a capital O and lower-case letters is wrong. It should be OUTPUT Lives.
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 136–145) and word search (Modules 123–145).
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
IFFill in the Blanks
Spot the Error
Student with a class code? Join your class →