← IGCSE Computer Science Paper 2

Pseudocode as a design method

A structured, code-like way of writing an algorithm that follows set rules but does not need to run on a computer. It shows the logic of a design, not exact programming syntax.

Understanding Pseudocode as a design method in IGCSE Computer Science Paper 2

What it does: The decision logic (if the score is at least 50, output Pass) is clear without language-specific syntax, so it could be coded in Python, VB or Java. The arrow ← for assignment and the Pascal case identifiers are part of the set rules for exam pseudocode. Pseudocode is a design method. It shows the logic of an algorithm and does not have to run on a computer. Pseudocode focuses on the logic. Exact programming syntax is only needed when you write real code. Logic matters more than syntax in a design. Even so, you should still try to follow the Cambridge keyword style.

Common mistakes: Cambridge pseudocode uses the assignment arrow ← to store a value in a variable. The = sign is used for comparisons. It should be Total ← Total + Mark. Text to be displayed must be written as a string in double quotes. Without quotes, Allowed looks like a variable. It should be OUTPUT "Allowed".

Class: _____________________  ·  Name: _____________________  ·  Date: _________

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 17–26) and word search (Modules 1–26).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
Which statement about pseudocode is correct?
It must be compiled before a computer can run itIt follows set rules but does not need to run on a computer
Matches
print("Hello") // thinking this is pseudocode
↓
print() is Python syntax, so it is a programming language, not Cambridge pseudocode. Pseudocode should use OUTPUT "Hello" instead.
Applying
Meanings
Term
pseudocode
Meaning
A structured, code-like way of writing an algorithm that follows set rules but does not need to run on a computer. It shows the logic of a design, not exact programming syntax.
Practice
// Check a test mark
Testing
Gaps
Num
Check Answer
Spots
3INPUT Mark
4Total = Total + Mark

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Cosmic Dragon' badge — Orbit Master, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. Which statement about pseudocode is correct?
A. It follows set rules but does not need to run on a computer ✓
B. It must be compiled before a computer can run it
Pseudocode is a design method. It shows the logic of an algorithm and does not have to run on a computer.
2. What does pseudocode mainly show?
A. The logic of the design ✓
B. The exact syntax of one programming language
Pseudocode focuses on the logic. Exact programming syntax is only needed when you write real code.
3. Which is a difference between pseudocode and a programming language?
A. Pseudocode must follow exact syntax so a computer can run it
B. A programming language must follow exact syntax so a computer can run it ✓
A programming language is run by a computer, so its syntax must be exact. Pseudocode is written for people to read.
4. A student writes pseudocode that has the right logic but a small spelling slip in a keyword. Which matters more?
A. The exact spelling of every keyword
B. The logic of the algorithm ✓
Logic matters more than syntax in a design. Even so, you should still try to follow the Cambridge keyword style.
5. In a Cambridge 0478 exam, which line is written in the expected pseudocode style?
A. OUTPUT "Hello" ✓
B. print("Hello")
Cambridge pseudocode uses capital-letter keywords such as OUTPUT. print() is Python syntax.

Match the Pairs

pseudocode → A structured, code-like way of writing an algorithm that follows set rules but does not need to run on a computer
OUTPUT "Hello" → A Cambridge-style pseudocode line that shows a message to the user, written with a capital-letter keyword
Pseudocode shows the logic of a design, so the same idea can later be written in any programming language → IF Score >= 50 THEN OUTPUT "Pass" ENDIF
Pseudocode follows Cambridge 0478 style rules, such as capital-letter keywords and the arrow for assignment → Total ← Price * Quantity
print("Hello") // thinking this is pseudocode → print() is Python syntax, so it is a programming language, not Cambridge pseudocode. Pseudocode should use OUTPUT "Hello" instead.
Pseudocode must be typed into a compiler and run without errors → Pseudocode does not need to run on a computer. It is for planning the logic of an algorithm, so small syntax slips matter less than clear logic.

Key Term

pseudocode
A structured, code-like way of writing an algorithm that follows set rules but does not need to run on a computer. It shows the logic of a design, not exact programming syntax.

Fill in the Blanks

1. OUTPUT "Enter a number" INPUT Num OUTPUT Num * 2
Hint: Type the keyword that reads a value from the user into a variable.
2. IF Score >= 50 THEN OUTPUT "Pass" ENDIF
Hint: Type the keyword that follows the condition in an IF statement.
3. INPUT Price Total ← Price * 3 OUTPUT Total
Hint: Type the pseudocode assignment symbol (typed as <- on a keyboard).
4. FOR Count ← 1 TO 5 OUTPUT Count NEXT Count
Hint: Type the keyword that links the start value to the end value of the loop.
5. // Calculate the area of a rectangle Area ← Length * Width OUTPUT Area
Hint: Type the symbol that starts a comment line in Cambridge pseudocode.

Spot the Error

Question 1
A DECLARE Total : INTEGER
B Total ← 0
C INPUT Mark
D Total = Total + Mark
E OUTPUT Total
Line D — Cambridge pseudocode uses the assignment arrow ← to store a value in a variable. The = sign is used for comparisons. It should be Total ← Total + Mark.
Question 2
A INPUT Age
B IF Age >= 16 THEN
C OUTPUT Allowed
D ENDIF
Line C — Text to be displayed must be written as a string in double quotes. Without quotes, Allowed looks like a variable. It should be OUTPUT "Allowed".
Question 3
A DECLARE Score : NUMBER
B INPUT Score
C OUTPUT Score * 2
Line A — Cambridge pseudocode only uses the data types INTEGER, REAL, CHAR, STRING and BOOLEAN. NUMBER is not one of them. It should be DECLARE Score : INTEGER.
Question 4
A INPUT Count
B Total ← 0
C FOR i ← 1 UNTIL Count
D INPUT Num
E Total ← Total + Num
F NEXT i
Line C — A count-controlled loop in pseudocode uses the keyword TO between the start and end values. UNTIL belongs to REPEAT loops. It should be FOR i ← 1 TO Count.
Question 5
A WHILE Password <> "abc"
B INPUT Password
C ENDWHILE
Line A — A WHILE loop header must end with the keyword DO so the structure is complete. It should be WHILE Password <> "abc" DO.

Student with a class code? Join your class →