Layout conventions for Cambridge pseudocode
Pseudocode layout convention: keywords in UPPER CASE, identifiers in PascalCase, and lines inside a statement indented four spaces. Meta-variables use angled brackets, like <identifier>.
Understanding Layout conventions for Cambridge pseudocode in IGCSE Computer Science Paper 2
What it does: CONSTANT is an upper case keyword and MaxScore is a PascalCase identifier, so the line follows the layout convention. The lines inside the IF statement are indented by four spaces, with a further four for the nested line, which is the Cambridge layout rule. INPUT and OUTPUT are keywords, so Cambridge pseudocode writes them in capitals. Each word in an identifier starts with a capital letter, which makes it easier to read. PlayerName is clearer than playername. Meta-variables in angled brackets show what kind of item goes there. For example, DECLARE <identifier> : <data type>. You replace them with real names and types.
Common mistakes: Keywords such as DECLARE are always written in UPPER CASE. The line should be DECLARE Score : INTEGER. INPUT is a keyword, so it must be in UPPER CASE. The line should be INPUT Name.
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 347–357) and word search (Modules 337–357).
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
DECLARE TotalScore : INTEGERFill in the Blanks
Spot the Error
Student with a class code? Join your class →