Outcomes from selection statements
I can explain that a conditional statement can connect a condition to an outcome.
Outcomes from selection statements
I can explain that a conditional statement can connect a condition to an outcome.
These resources will be removed by end of Summer Term 2025.
Switch to our new teaching resources now - designed by teachers and leading subject experts, and tested in classrooms.
These resources were created for remote use during the pandemic and are not designed for classroom teaching.
Lesson details
Key learning points
- Conditions can be used in an infinite loop to check a condition.
- The condition and outcomes in an "if... then... else..." statement can be identified.
- A program can use selection to produce different outcomes.
Keywords
Repetition - part of a program where one or more commands are run multiple times in a loop
Infinite loop - a chunk of code that runs a section of the program continuously
Outcome - the actions that come from a condition being True or False
Common misconception
A condition will keep being checked on its own.
Conditions need to be inside forever loops if you want them to be repeatedly checked.
To help you plan your year 5 computing lesson on: Outcomes from selection statements, download all teaching resources for free and adapt to suit your pupils' needs...
To help you plan your year 5 computing lesson on: Outcomes from selection statements, download all teaching resources for free and adapt to suit your pupils' needs.
The starter quiz will activate and check your pupils' prior knowledge, with versions available both with and without answers in PDF format.
We use learning cycles to break down learning into key concepts or ideas linked to the learning outcome. Each learning cycle features explanations with checks for understanding and practice tasks with feedback. All of this is found in our slide decks, ready for you to download and edit. The practice tasks are also available as printable worksheets and some lessons have additional materials with extra material you might need for teaching the lesson.
The assessment exit quiz will test your pupils' understanding of the key learning points.
Our video is a tool for planning, showing how other teachers might teach the lesson, offering helpful tips, modelled explanations and inspiration for your own delivery in the classroom. Plus, you can set it as homework or revision for pupils and keep their learning on track by sharing an online pupil version of this lesson.
Explore more key stage 2 computing lessons from the Using selection in programming to develop a quiz unit, dive into the full primary computing curriculum, or learn more about lesson planning.
Equipment
Pupils will need access to a device with block-based programming software. Examples in this lesson use Scratch https://oak.link/scratch
Licence
Prior knowledge starter quiz
6 Questions
Q1.What is a condition in programming?
Q2.Put these steps in order for how a selection works in a program:
Q3.What does a program do when a condition is met?
Q4.Why are conditions important in programming?
Q5.Match the keyword to its meaning:
a rule that can be checked
choosing what to do
the condition is met
the condition is not met
Q6.What would happen if a program only checked a condition once?
Assessment exit quiz
6 Questions
Q1.What do we call a loop that never ends?
Q2.What is the purpose of a condition inside a loop?
Q3.In an if... then... else... statement, what happens if the condition is not met?
Q4.What is an outcome in a program?
Q5.Sequence the events in an if... then... else... statement:
Q6.Match each scenario to the correct term:
The program keeps checking a rule forever.
The program picks what to do based on a rule.
The program runs a set of actions because a rule is met.
The program repeats a group of commands several times then stops.