Flowcharts and pseudocode Cambridge IGCSE Computer Science (9–1) revision
Not started
Learn it
In plain words
An algorithm is a set of steps for solving a problem. Before it is turned into program code, it is written down in one of two ways: as a flowchart, which is a picture, or as pseudocode, which is structured text.
6 things to know
- Flowchart symbols. A box with rounded ends (the terminator) for Start and Stop. A parallelogram for input and output. A rectangle for a process, such as a calculation. A diamond for a decision.
- A decision has one way in and two ways out, labelled Yes and No. Arrows, called flow lines, show the order of the steps.
- Pseudocode uses keywords in capitals, such as INPUT, OUTPUT, IF and WHILE.
- The arrow ← means "is given the value of". Total ← Total + 5 means: work out Total + 5 and store the answer back in Total.
- Algorithms must be precise. Write Mark > 50, not "Mark is greater than 50".
- To state the purpose of an algorithm, say what it achieves overall, such as "it finds the largest of ten numbers", not what each line does.
Worked example
An algorithm inputs a number and outputs "High" if it is more than 100, and "Low" if not. Which flowchart symbols are needed, in order?
- Start: a terminator.
- INPUT Number: a parallelogram.
- Is Number > 100?: a diamond, with a Yes arrow and a No arrow coming out.
- OUTPUT "High" on the Yes arrow and OUTPUT "Low" on the No arrow: two parallelograms.
- Stop: a terminator.
Tips and tricks
- Label both exits from every decision with Yes and No. An unlabelled decision cannot be followed, and loses marks.
- Input and output share one shape, the parallelogram. Calculations go in rectangles.
It lands in your notebook with its questions as flashcards.
Flowcharts and pseudocode: 6 questions and answers
These are the quiz’s questions. Do the quiz first, then come back here for the ones that got you.
Which flowchart symbol is used for a decision?
It has two exits: Yes and No.
Which flowchart symbol is used for input and output?
The same shape is used for both.
Which flowchart symbol is used for a calculation?
A calculation is a process.
What does the arrow in Price ← 20 mean?
The value on the right is stored in the variable on the left.
Which is written precisely enough for pseudocode?
Each step must be exact.
What do the flow lines of a flowchart show?
Follow the arrows from Start to Stop.
Quiz
6 questions
Tap an answer and you’ll see straight away whether it’s right, and why.
Worksheet
2 questions, 5 marks. Write your answers on paper, then check them.
Flowcharts and pseudocode
Cambridge IGCSE Computer Science (9–1) 0984 · 5 marks · papermunch.org
Name ______________________________ Date ______________
State the flowchart symbol used for a decision, for an output and for a calculation.[3]
Show answerHide answer
A diamond for a decision. A parallelogram for an output. A rectangle for a calculation (a process).
Explain what the pseudocode statement Count ← Count + 1 does.[2]
Show answerHide answer
It adds 1 to the value held in the variable Count and stores the result back in Count.
Answers: Flowcharts and pseudocode
- 1. A diamond for a decision. A parallelogram for an output. A rectangle for a calculation (a process).
- 2. It adds 1 to the value held in the variable Count and stores the result back in Count.



