GCSE · Computer Science · AQA · Spec 8525
Pseudo-code
You have 10 stickers. Double them, give 3 away, then buy 5 more. How many now? Swap the order and the answer changes. No laptop needed.
Algorithms · Pseudo-code
How many stickers do you end up with?
You start with 10 stickers and a list of steps. Make a guess, then step through the pseudo-code and watch the number change.
Before you press Next: what number do you reckon this will say at the end?
1 Start with 10 stickers.2 Double your stickers.3 Give 3 stickers to a friend.4 Buy a pack of 5 stickers.5 Say how many stickers you have.
Variables
Output
Step 1: Step one: you start with 10 stickers. Everything after this depends on it.
Press Next one step at a time. The highlighted line is the step you’re on; the number underneath is how many stickers you have right now.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
The algorithm without the language: plain enough for people to read, with the steps set out in a logical order.
What you need to know
- An algorithm can be shown in three ways: as pseudo-code, as program code or as a flowchart.
- Pseudo-code uses plain language to set out an algorithm’s steps in a logical order, one after another.
- You only need basic knowledge of programming to understand pseudo-code.
- It doesn’t follow the syntax or rules of any particular programming language.
Have a goYour pseudo-code is missing a bracket that a programming language would demand. Your friend’s has two steps in the wrong order. Whose plan has the real problem?
Your friend’s. Steps in the wrong order break the plan.
Pseudo-code follows no language’s syntax, so a missing bracket doesn’t matter. But it must set out the steps in a logical order, so swapped steps really are a mistake.
- That means a computer can’t run pseudo-code as it is. It’s a planning tool, not finished code.
- Because it isn’t tied to one language, pseudo-code can easily be translated into different programming languages.
- Creating an algorithm takes a systematic approach to solving a problem; pseudo-code is one way to represent the algorithm.
Have a goYour friend writes the whole plan for a sandwich as one line: “Make a sandwich.” Is that enough of a plan?
No. That’s the goal, not the steps.
Pseudo-code outlines the steps of the algorithm in a logical, sequential manner. “Get two slices of bread”, then “put the cheese on one slice” are the kind of steps that make it a plan.
- The steps are sequential, so follow them in the order they’re written: swapping two steps can change the result.
- Pseudo-code is a human-readable representation of an algorithm’s logic, so it’s written for people to read.
- In the exam, any pseudo-code you’re given uses one standard version, and each question says which form to answer in.
Have a goPseudo-code is written for people to read. So who is it written for: the computer, or your teammate?
Your teammate. It’s a human-readable representation of the algorithm.
A computer can’t run pseudo-code as it is. People read it, plan with it and check it, then it’s translated into program code.
The big picture
Pseudo-code is an algorithm written in plain language, with its steps set out in a logical order, one after another. Anyone with basic programming knowledge can understand it. It doesn’t follow the syntax or rules of any particular programming language, so a computer can’t run it as it is: it’s a planning tool, and it can easily be translated into different programming languages. It sits alongside program code and flowcharts as one of three ways to represent an algorithm.
Key points
Worked example
Problem
Write pseudo-code for an algorithm that sends a text message to a friend.
⚠ Watch out
Thinking pseudo-code has to follow the syntax of a programming language, and worrying about a missing bracket. It doesn’t follow the syntax or rules of any particular programming language. What matters is that the steps are in plain language and in a logical order.
Memory hook
Pseudo-code is a recipe written for people, not machines: anyone who knows the basics can follow it by hand, but to run it you translate it into a real programming language.
Check yourself
A plan says: 1 Fill the kettle. 2 Pour the boiled water on the teabag. 3 Boil the kettle. Which two steps need swapping? (2 and 3: boil the water before pouring it.)
Flashcards
(14)What is pseudo-code?
Name three ways an algorithm can be represented.
Can a computer run pseudo-code as it is?
How much programming knowledge do you need to understand pseudo-code?
Why can pseudo-code be translated into different programming languages easily?
What is pseudo-code used for?
What approach is used to create an algorithm?
Why does the order of the steps in pseudo-code matter?
Who is pseudo-code written for?
Does pseudo-code follow the syntax of one programming language?
Is pseudo-code the same as program code?
How are pseudo-code, program code and flowcharts related?
How is pseudo-code different from everyday English?
In the exam, what version of pseudo-code will any given pseudo-code use?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 26 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.