Writing a sequence in Cambridge pseudocode
A program made of statements like DECLARE, <-, INPUT and OUTPUT that run one after another from top to bottom, with no selection or iteration. Changing the order changes the result.
Understanding Writing a sequence in Cambridge pseudocode in IGCSE Computer Science Paper 2
What it does: DECLARE, INPUT and OUTPUT run in that order from top to bottom, and the program has no IF or loop. A sequence has no selection (IF) or iteration (loops). Each statement runs once, from top to bottom. A sequence follows input, then process, then output. You cannot output an answer before it has been worked out. The statements run in order. Total becomes 5, then 5 + 3 is stored back into Total, so it is 8. In B, OUTPUT runs before the addition, so it shows 4. Changing the order changes the output. A variable should be declared before it is used. Declare first, then assign with <-.
Common mistakes: The keyword INPUT must come first, followed by the variable name. The line should be INPUT Qty. A DECLARE statement uses a colon between the identifier and the data type. It should be DECLARE Age : INTEGER.
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 358–368) and word search (Modules 358–378).
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
sequenceFill in the Blanks
Spot the Error
Student with a class code? Join your class →