Year 10 - Computing
Using selection when developing programs
Programming: selection
Study Hub
This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.
Year 10 - Computing
Programming: selection
In this unit pupils will explore the benefits of good programing practices and why subroutines are used in programs. They will create conditions in programs which use arithmetic, relational and logical expressions. They will develop their understanding of selection and explore nested selection.
You will learn to describe how selection statements are used in programs to control program flow.
Selection is used when there is more than one possible path for a program to follow. Selection is carried out using if, elif and else statements.
used when there is more than one possible path for a program to follow. Add one real device or system example to prove understanding.
Mistake: A program follows a sequence of instructions and will run all lines of code. Correction: Selection statements can be used to control program flow, so some lines of code can be skipped to follow a different path through the program.
Browse all guides in the Year 10 Computing guide library.