GCSE · Computer Science · Eduqas · Spec C500QS
Pseudo-code definition of algorithms
Picture giving a friend directions with no map: plain steps, in the right order. Pseudo-code does that for algorithms, and since nobody can press Run, you become the computer.
Computer Science · Pseudo-code
Be the computer: run this pseudo-code by hand
No computer is running this. You are. Step through, and before the table shows a marked step, call it: the value, the branch or the output. Then try the second set of scores.
passes ← 0FOR i ← 1 TO 3INPUT scoreIF score >= 50 THENpasses ← passes + 1OUTPUT "Pass"ELSEOUTPUT "Try again"ENDIFNEXT iOUTPUT passes
Variables
Step 1. The first statement stores 0 in passes. This first step is worked for you.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
A plain-words plan anyone can follow, and the skill of being the computer that runs it.
What you need to know
- Pseudo-code writes an algorithm in plain language, with syntax that is independent of any particular programming language.
- It lays out the steps in a logical, sequential order, and each statement is carried out in the order it is written.
- A computer cannot run pseudo-code as written: it must be translated into a real language such as Python, Java or C# first.
Have a goSam types a neat IF ... ELSE ... ENDIF listing into the school computer, presses Run, and is sure it will work. What has Sam forgotten?
It has to be translated into a real programming language first.
Pseudo-code follows no particular language's syntax, so a computer cannot execute it as written.
- It is human-readable, so basic programming knowledge is enough to follow it, and it translates easily into different languages.
- Programmers often use it to see whether a solution is possible and logical before translating it into the final program.
- Unlike flowcharts, pseudo-code has no set standards, so whatever style you choose, be consistent and make the meaning clear.
Have a goAva writes INPUT score near the top of her listing and Get score further down, meaning the same thing. Which piece of advice has she ignored?
Be consistent: use the same wording for the same job.
Pseudo-code has no set standards, so consistency and clear meaning are what keep it readable.
- Keywords are often capitalised: INPUT asks the user for something, FOR repeats a set number of times, and IF-THEN-ELSE makes a decision.
- WHILE repeats for as long as its condition is true, and it checks that condition before each pass.
Have a goA loop is written WHILE 3 > 5, with an OUTPUT line inside it. How many times does that OUTPUT run?
Zero times.
WHILE checks its condition before each pass, and 3 > 5 is false straight away, so the loop body never runs.
- To write it: understand the problem, break it into smaller steps, then write the statements in the order they happen.
- To read it: follow the statements in order, apply each IF and each loop, and say what the algorithm outputs for the inputs given.
The big picture
Pseudo-code is a way of writing an algorithm in plain language, step by step, without following any particular programming language. You learn to read it by following each statement, selection and loop in order, and to write it by understanding the problem and breaking it down.
Key points
Worked example
Problem
What does this algorithm output? It reads: n ← 3, then WHILE n > 0, inside it OUTPUT n and n ← n − 1, then ENDWHILE, and finally OUTPUT "Go!".
⚠ Watch out
Treating pseudo-code as real code or as loose notes. A computer cannot run it until it is translated, but it is not casual: statements run in order, and the style must be consistent and clear.
Memory hook
Pseudo-code is a plan in plain words: read it top to bottom, be the computer, and translate it before anything runs.
Check yourself
Cover the page and explain to a friend, in three sentences: what pseudo-code is, why a computer cannot run it yet, and one thing that must be true of any pseudo-code you write.
Flashcards
(12)What is pseudo-code?
Why can a computer not run pseudo-code as written?
Name three ways an algorithm can be represented.
Pseudo-code has no set standards, unlike flowcharts. What should you do about that?
How are keywords usually written in pseudo-code?
What does INPUT do?
What does FOR show?
What does IF-THEN-ELSE show?
How does a WHILE loop decide when to stop?
What two things come before writing the statements?
How do you interpret a piece of pseudo-code?
Why is pseudo-code often written before the final program?
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 Eduqas GCSE Computer Science topics
How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)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 23 November 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.