Lesson 1 of 3 · Lower secondary, ages 11 to 14
Builds the basics this topic needs
Building a program using control structures
By the end: I can combine sequence, selection and iteration to build a program that uses complex conditions.
Key learning points
- Expressions formed using logical operators evaluate to either True or False.
- Logical and relational operators can be combined to create complex conditions.
- The programming constructs of sequence, selection and iteration can be combined to make more complex programs.
Keywords
- condition
- an expression that evaluates to True or False
- selection
- used when there is more than one possible path for a program to follow
- iteration
- the process of repeating a sequence of instructions within a program loop
A common mistake
Mistake: Learners often get confused between the logic operators AND and OR.
In fact: For an AND statement to return True both inputs must be True. For an OR statement to return True either input can be True.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0. Read the licence