Starter quiz
- A ______ is a named piece of data, stored in a memory location in a computer.
- 'variable' ✓
- A variable can hold __________ one value at a time.
- more than
- only ✓
-
- Name one variable in this block of code.
- 'name' ✓
- Which category of code block do you need to create a subroutine?
- My blocks ✓
- Control
- Events
- Sensing
-
- Which block would you use to update the value of the temperature variable in Scratch?
- What is the value of temperature at the end of this block of code?
- 6 ✓
- 10
- 0
- 5
-
Exit quiz
- ______ is used when there is more than one possible path for a program to follow.
- 'Selection' ✓
- Which of these is the less than operator block?
- Which block is used to carry out selection in Scratch?
- Which of these blocks would you use if you want an operation to happen if the expression evaluates as False?
- if
- if else ✓
- forever
- repeat
-
Worksheet
Loading worksheet ...
Presentation
Loading presentation ...
Video
Lesson Details
Key learning points
- Conditions are built using expressions that evaluate to either True or False.
- Selection provides program control where there is more than one path to follow.
Common misconception
A program can only follow one sequence of commands.
Selection allows for a program to follow alternative paths depending on the criteria of the selection statement.
Keywords
Expression - a combination of logical and comparison operators that result to True or False
Selection - used when there is more than one possible path for a program to follow
If statement - used to carry out selection in a program
If block - used to carry out selection in Scratch
+