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 10 - Computing

Nested selection

Programming: selection

Unit Summary

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.

Lesson Summary

You will learn to trace and modify code in a program that uses nested selection.

Key Notes

  • Selection statements with conditions can be nested inside another selection statement.
  • Nested selection statements are used to implement complex branching logic.
  • If a condition of a main selection block evaluates to True, it leads to sub-conditions which are inside the main block.

Vocabulary To Learn

  • nested selection: a block of code where a selection block is placed within another selection block

Common Mistakes To Avoid

  • A nested selection statement can only have one nested selection block.

3 Quick Questions (With Answers)

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

Selection statements with conditions can be nested inside another selection statement. Nested selection statements are used to implement complex branching logic.

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

a block of code where a selection block is placed within another selection block. Add one real device or system example to prove understanding.

3. Correct this common computing misconception.

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.

More Lessons In This Unit

Browse all guides in the Year 10 Computing guide library.