Pseudocode, flowcharts and program code
Cambridge's fixed format for planning an algorithm before it is written as program code. Paper 2 answers must use it, except the 15-mark question, which allows Python, VB or Java.
Understanding Pseudocode, flowcharts and program code in IGCSE Computer Science Paper 2
What it does: IF and THEN are keywords in upper case, as the fixed pseudocode format requires. The diamond with two exits is the flowchart version of IF ... ELSE ... ENDIF, so both plan the same algorithm. Paper 2 solutions must be written in pseudocode, using the ← assignment arrow and the Cambridge keywords. Python is only allowed in the 15-mark scenario question. Algorithms must be exact. A wrong symbol or a missing keyword can make the steps wrong, and it can lose marks in the exam. Planning comes first. You work out the steps in pseudocode or a flowchart, and then you write the program code.
Common mistakes: Cambridge pseudocode assigns a value with the arrow ←, not =. The line should be Total ← 0. Pseudocode keywords must be written in upper case. The line should start with IF, not if.
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
pseudocodeFill in the Blanks
Spot the Error
Student with a class code? Join your class →