Event block: when green flag clicked

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Event block: when green flag clicked

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which block is used to start a script when you click the green flag?
A forever
B when green flag clicked
2. Where does the 'when green flag clicked' block go in a script?
A At the bottom of the stack
B At the top of the stack
3. True or false: The blocks stacked under 'when green flag clicked' run when you click the green flag.
A True
B False
4. What happens to a stack of blocks that has NO event block at the top?
A It does not start when the green flag is clicked
B It starts by itself when the green flag is clicked
5. Why is 'when green flag clicked' called a hat block?
A It has a rounded top and sits on top of a script like a hat
B It makes the sprite wear a hat

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1when green flag clicked Awhen green flag clicked say Hello! for 2 seconds move 10 steps
2hat block BThe move block is not joined to the hat block. A block that is not stacked under the event block will not run when the green flag is clicked.
3To start a program when the green flag is clicked, put the event block at the top of the script, with the other blocks stacked underneath CA block with a rounded top that sits at the very top of a script and starts it
4Two separate scripts can both start at the same time when the green flag is clicked Dwhen green flag clicked move 10 steps when green flag clicked say Hi!
5move 10 steps say Hello! when green flag clicked EThe event block is at the bottom. A hat block must be at the top of the script, or the blocks above it will not start when the flag is clicked.
6when green flag clicked move 10 steps (separate stack) FAn event block that starts the script stacked under it when the green flag is clicked

Definitions

when green flag clicked

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
_______________________ say [Hello!] for (2) seconds
2.
when __________ clicked say [Let's start!] for (2) seconds
3.
when green flag clicked ____ (10) steps
4.
when green flag clicked say [Go!] for (2) seconds ____ (15) degrees
5.
when green flag clicked _____ [Ready?] for (2) seconds

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A when green flag clicked
B say [Ready!] for 2 seconds
C move (10) degrees
D turn right (15) degrees
Question 2
A when space key pressed
B set [score v] to (0)
C say [Go!] for 2 seconds
Question 3
A when green flag clicked
B go to x: 0 y: 0
C say [Hi!] for 2 seconds
D when green flag clicked
Question 4
A when green flag clicked
B say [Hello!] for 2 seconds
C move (10) steps
D say [Bye!] for seconds
Question 5
A when green flag clicked
B set [score v] to (0)
C change [score v] to (1)
D say (score) for 2 seconds

Answer Key

Event block: when green flag clicked
Section A: Quick Questions
Q1
B — when green flag clicked
Q2
B — At the top of the stack
Q3
A — True
Q4
A — It does not start when the green flag is clicked
Q5
A — It has a rounded top and sits on top of a script like a hat
Section B: Match the Pairs
Q1
when green flag clicked → An event block that starts the script stacked under it when the green flag is clicked
Q2
hat block → A block with a rounded top that sits at the very top of a script and starts it
Q3
To start a program when the green flag is clicked, put the event block at the top of the script, with the other blocks stacked underneath → when green flag clicked say Hello! for 2 seconds move 10 steps
Q4
Two separate scripts can both start at the same time when the green flag is clicked → when green flag clicked move 10 steps when green flag clicked say Hi!
Q5
move 10 steps say Hello! when green flag clicked → The event block is at the bottom. A hat block must be at the top of the script, or the blocks above it will not start when the flag is clicked.
Q6
when green flag clicked move 10 steps (separate stack) → The move block is not joined to the hat block. A block that is not stacked under the event block will not run when the green flag is clicked.
Section C: Definitions
Q1
when green flag clicked — An event block that starts the script stacked under it. It is a hat block that sits at the top, and the program begins when you click the green flag.
Section D: Fill in the Blanks
Q1
when green flag clicked say [Hello!] for (2) seconds
Q2
when green flag clicked say [Let's start!] for (2) seconds
Q3
when green flag clicked move (10) steps
Q4
when green flag clicked say [Go!] for (2) seconds turn (15) degrees
Q5
when green flag clicked think [Ready?] for (2) seconds
Section E: Spot the Error
Q1
C — The move block counts in steps, not degrees. Degrees belong to the turn block. The line should be 'move (10) steps'.
Q2
A — This script should start when the green flag is clicked. 'when space key pressed' is a different event block, so clicking the green flag would not run the script. Line 1 should be 'when green flag clicked'.
Q3
D — A hat block such as 'when green flag clicked' must sit at the top of a script. It cannot go at the bottom. This line should be 'turn right (15) degrees'.
Q4
D — The 'say for' block needs a number of seconds. The number is missing. It should be 'say [Bye!] for 2 seconds'.
Q5
C — The 'change' block uses 'by' to add to a variable. 'to' belongs to the 'set' block. It should be 'change [score v] by (1)'.