Skip to content

Study Hub

Study Guides

This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.

Year 5 - Computing

Using conditions to build quiz questions

Using selection in programming to develop a quiz

Unit Summary

In this unit pupils will discover how to write programs that ask questions and use selection to control the outcomes based on the answers given. They will design a quiz in response to a given task and implement it as a program. They will then evaluate their programs against given criteria.

Lesson Summary

You will learn to explain how selection directs the flow of the program.

Key Notes

  • Conditions can be used to control program flow.
  • A condition can direct program flow in one of two ways.
  • Selection in the form of if...then...else statements can be used to check conditions

Vocabulary To Learn

  • selection: part of a program where if a condition is met, then a set of commands is run
  • condition: a statement that can be either True or False
  • outcome: the actions that come from a condition being True or False

Common Mistakes To Avoid

  • The program understands that 'twelve' is the same as '12' in the user input.

3 Quick Questions (With Answers)

1. Describe the system or process from this lesson in clear steps.

Conditions can be used to control program flow. A condition can direct program flow in one of two ways.

2. Define this computing term and give one practical example. 'selection'

part of a program where if a condition is met, then a set of commands is run. Add one real device or system example to prove understanding.

3. Correct this common computing misconception.

Mistake: The program understands that 'twelve' is the same as '12' in the user input. Correction: The user's input needs to be an exact match to what you put in the condition.

More Lessons In This Unit

Browse all guides in the Year 5 Computing guide library.