Year 10 - Computing
Nested selection
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 trace and modify code in a program that uses nested selection.
Selection statements with conditions can be nested inside another selection statement. Nested selection statements are used to implement complex branching logic.
a block of code where a selection block is placed within another selection block. Add one real device or system example to prove understanding.
Mistake: A nested selection statement can only have one nested selection block. Correction: Selection statements can can continue to be nested in further selection blocks to provide more complex conditions for which specific code will be executed.
Browse all guides in the Year 10 Computing guide library.