Choose exam board for KS4 Computer Science (GCSE)
Choose exam board for KS4 English
Choose exam board for KS4 French
Choose exam board for KS4 Geography
Choose exam board for KS4 German
Choose exam board for KS4 History
Choose tier for KS4 Maths
Choose exam board for KS4 Music
Choose exam board for KS4 Physical education (GCSE)
Choose exam board for KS4 Religious education (GCSE)
Choose exam board for KS4 Spanish

Lesson details

Learning outcome

I can predict the outcome of a sequence.

Key learning points

  1. A sequence of commands has an outcome.
  2. Programs can use different commands and have the same outcome.
  3. The outcome of a program can be changed.

Keywords

  • Prediction - what you think will happen

  • Outcome - the end result of a program

Common misconception

A program’s outcome can only be achieved in one way.

Using different combinations or sequences of commands can achieve the same outcome even though the finished solution might not have been the best way to produce the outcome .

Teacher tip

Demonstrate the examples of programs using your programming software, if possible. This allows you to to modify and run your program to respond to student questions.

Equipment

Pupils will need access to a device with block-based programming software. Examples in this lesson use ScratchJr https://oak.link/scratch-jr

Licence

This content is © Oak National Academy Limited (2026), licensed on Open Government Licence version 3.0
except where otherwise stated. See Oak's terms & conditions
(Collection 2).

Lesson video

Loading...

Prior knowledge starter quiz

4 Questions

Q1.
What is a sequence?

a random set of actions
a single command
a group of events happening at the same time
Correct answer: a set of steps with a specific order

Q2.
Where does a program start?

with a command
Correct answer: with an event
at the end
in the middle

Q3.
What do you call a set of ordered commands?

a story
a list
Correct answer: a program
a game

Q4.
Arrange these steps in the order needed for a sequence.

1 - start
2 - first command
3 - second command
4 - end

4 Questions

Q1.
Match each term to its definition.

Correct Answer:prediction,what you think will happen

what you think will happen

Correct Answer:outcome,the result of a program

the result of a program

Correct Answer:sequence,a set of steps in a specific order

a set of steps in a specific order

Q2.
Can different programs have the same outcome?

No, each program is unique.
Yes, but only if they are identical.
Correct answer: Yes, through different sequences.

Q3.
Why is it important to predict outcomes in programming?

Correct answer: to understand what the program will do
to write longer code
to confuse others
to make the program look complex

Q4.
What happens if you change the sequence of commands?

The program stops.
The computer crashes.
Correct answer: The outcome might change.
Nothing changes.

To help you plan your 2 computing lesson on: Outcomes of sequences, download all teaching resources for free and adapt to suit your pupils' needs...