Starter quiz
- Which block is used to carry out selection in Scratch?
- if block ✓
- forever block
- say block
- repeat block
-
- What can the result of an expression be?
- True or False ✓
- Yes or No
- 0 or 1
-
- Which operator block would you use to check if the value of the score variable is 10?
- Which of these blocks would you use if you want an operation to happen if the expression evaluates as False?
- In which block category can you find the if block?
- Control ✓
- Events
- Variables
- Operators
-
- In which block category can you find this block?
- Operators ✓
- Control
- Events
- Variables
-
Exit quiz
- A ______ operator is used to compare one value to another.
- 'comparison' ✓
- The logical expression 'AND' returns True when...
- both values are True. ✓
- one or both values are True.
- the value is False.
-
- The logical expression 'OR' returns True when...
- one or both values are True. ✓
- only one value is True.
- the value is False.
-
- Logical operators and comparison operators can be combined to build complex ______.
- 'conditions' ✓
Worksheet
Loading worksheet ...
Presentation
Loading presentation ...
Video
Lesson Details
Key learning points
- Comparison operators can be used to compare values in expressions.
- Logical operators can be used to compare multiple comparison expressions.
- Selection statements can combine comparison and logical operators to build complex conditions.
Common misconception
Selection statements can only check one condition at a time.
Complex conditions can be built into selection using a combination of comparison and logical operators. Logical operators join separate conditions and provide one complete statement that still evaluates to only True or False.
Keywords
Comparison operator - an operator that is used to compare one value to another
Condition - used to control the path a program follows
Logic operator - an operator used in a logical expression, for example, AND, OR and NOT
+