Remember: An if-else asks one question and then does exactly one of two things.
Questions
1
Which rule has no else?
🥪if you are hungry, eat lunch, else keep playing🚦if the light is green, go, else wait☔if it rains, take an umbrella
2
Which rule has an else?
🔔if the bell rings, line up💡if the lamp is dark, turn it on🌉if the bridge is clear, cross it, else use the stones
3
Which rule has no else?
🌵if the soil is dry, water it🌉if the bridge is clear, cross it, else use the stones🥪if you are hungry, eat lunch, else keep playing
4
Which rule has an else?
☔if it rains, take an umbrella🚦if the light is green, go, else wait💡if the lamp is dark, turn it on
5
Which rule has no else?
🔔if the bell rings, line up🧥if it is cold, wear a coat, else wear a shirt🚦if the light is green, go, else wait
6
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
7
👯True or false? An if-else runs both of its parts together.
TrueFalse
8
Which rule has no else?
🚦if the light is green, go, else wait🌉if the bridge is clear, cross it, else use the stones💡if the lamp is dark, turn it on
9
💤True or false? An if on its own does nothing when it is false.
TrueFalse
10
Which rule has an else?
🥪if you are hungry, eat lunch, else keep playing🌵if the soil is dry, water it🔔if the bell rings, line up
11
🚫True or false? An if-else can run neither of its parts.
TrueFalse
12
🔀True or false? When the answer is no, 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.
Answer key · Set B
If and else
1if it rains, take an umbrella
2if the bridge is clear, cross it, else use the stones
3if the soil is dry, water it
4if the light is green, go, else wait
5if the bell rings, line up
6if it is cold, wear a coat, else wear a shirt
7False
8if the lamp is dark, turn it on
9True
10if you are hungry, eat lunch, else keep playing
11False
12True
Mark each answer, count the right ones and write the score on the sheet.