0984

Pseudocode and Flowcharts

Algorithm Design and Problem Solving · 4 question types

Exam Frequency Analysis

Past paper frequency (2018 to 2024)

This topic accounts for approximately 11% of your exam marks.

stable
Medium
Stable11%

The most marks-dense topic. Both papers test pseudocode writing and trace tables every sitting.

A flowchart describes an algorithm visually. Each step is a labelled shape; arrows show the order steps are carried out in.

ShapeNameUsed for
Rounded rectangle (sometimes called a "stadium" or oval)TerminatorThe START and STOP of the program
ParallelogramInput / OutputReading data from the user, or printing it back to them
RectangleProcessA calculation, an assignment, or any other action that is not an input, output or decision
Diamond (rhombus)DecisionAn IF-style yes/no question that splits the flow into two branches
ArrowFlow lineShows the order in which steps run; arrows always have an arrowhead pointing in the direction of flow
Sub-routine box (rectangle with two extra vertical bars)Sub-routineA call to a procedure or function defined elsewhere
Small circleConnectorJoins two parts of a long flowchart without crossing lines
Flowchart symbol reference: rounded terminator symbols labelled START and STOP, parallelogram input/output symbols, rectangular process symbols including a sub-routine box, and a diamond decision symbol with Yes and No branches
Source: Algorithm by Save My Exams

Rules for a well-formed flowchart

  • Always start with a START terminator and end with a STOP terminator.
  • Every shape (except terminators) has exactly one arrow in and exactly one arrow out, except for decisions, which have one arrow in and two arrows out (labelled Yes / No or True / False).
  • Loops are drawn by having an arrow loop back to an earlier point. A decision diamond inside the loop ends it.
  • Arrows should not cross if it can be avoided; use circles to jump across long distances.

A worked flowchart

The algorithm "ask for an age and welcome the user if they are 18+" puts every shape into action: a START terminator, an INPUT parallelogram for the age, a decision diamond with Yes/No branches, two output rectangles that rejoin, and a STOP terminator.

Worked flowchart: Start terminator, INPUT age parallelogram, a decision diamond IS age >= 18 with a Yes branch to an OUTPUT "Welcome to the site" and a No branch to an OUTPUT "Sorry, this site is for users 18 and over", both rejoining at a Stop terminator
Source: Algorithm by Save My Exams