Selection in Scratch
Answers are for parents and teachers.
1
Write three if … then sentences about your day. Underline the condition in each one.
Answers vary, for example: If it rains, then I take an umbrella. The condition is ‘it rains’.
2
The Hen starts at x: -100 and moves 25 steps for each space key press. The Nest is at x: 50. On which press does the Hen touch the Nest? (They touch only on the same spot.)
The Hen is at -75, -50, -25, 0, 25 and 50 after presses 1 to 6. It touches the Nest on press 6.
3
Draw a table with the columns Question, Object 1 and Object 2 for a program with a Fish and a Rock. The Fish swims when the right arrow key is pressed and says ‘Ouch!’ if it touches the Rock.
Fish: not static, swims, input right arrow key, condition touching the Rock, conclusion says Ouch!. Rock: static, no other answers.
4
A sprite starts at size 100%. A forever block checks once a second: if the B key is pressed, then change size by 10. The B key is held at checks 2 and 3, but not at checks 1 and 4. What size is the sprite after 4 checks?
The condition is true twice, so the size changes by 10 two times: 100 + 10 + 10 = 120%.
5
(if you have a computer or tablet) Build the Penguin and Fish program from the lesson. Click the right arrow key four times. What happens?
The Penguin says ‘Lunch!’ when it reaches the Fish, on the fourth press. If your sprites are big, they may touch one press earlier, because in Scratch ‘touching’ means that any parts of the two pictures overlap.