Remember: An if-else asks one question and then does exactly one of two things.
Questions
1
Which rule has no else?
🌉if the bridge is clear, cross it, else use the stones🌵if the soil is dry, water it🚦if the light is green, go, else wait
2
Which rule has no else?
🚦if the light is green, go, else wait🧥if it is cold, wear a coat, else wear a shirt💡if the lamp is dark, turn it on
3
Which rule has an else?
🌉if the bridge is clear, cross it, else use the stones☔if it rains, take an umbrella🔔if the bell rings, line up
4
Which rule has an else?
💡if the lamp is dark, turn it on🧥if it is cold, wear a coat, else wear a shirt🌵if the soil is dry, water it
5
Which rule has an else?
🔔if the bell rings, line up🥪if you are hungry, eat lunch, else keep playing☔if it rains, take an umbrella
6
🚫True or false? An if-else can run neither of its parts.
TrueFalse
7
Which rule has an else?
🔔if the bell rings, line up🚦if the light is green, go, else wait☔if it rains, take an umbrella
8
Which rule can do nothing at all?
🚦if the light is green, go, else wait🔔if the bell rings, line up🥪if you are hungry, eat lunch, else keep playing
9
Which rule has no else?
☔if it rains, take an umbrella🧥if it is cold, wear a coat, else wear a shirt🌉if the bridge is clear, cross it, else use the stones
10
👯True or false? An if-else runs both of its parts together.
TrueFalse
11
💤True or false? An if on its own does nothing when it is false.
TrueFalse
12
🙃True or false? When the answer is yes, the else part runs.
TrueFalse
Scan the code at the top to mark this sheet on screenTake a photo of your answers or type them. It is marked for you automatically, and your score is kept.