Tutorpip← About this lessonABCWith the answer keyDownload PDF
Coding · Ages 10+ · Set B
If in Python
Scan to mark
on screen
B
Name
Date
Start Finish
Goal: 15 min
Score/ 12
Remember: If runs lines only when a condition is true. Else runs when it is false.

Questions

1
The weather box holds rain and the coins box holds seven. Which condition is false?
🔤weather = "rain"🔤coins < 5🔤weather != "sun"
2
Which idea about if and else is not true?
🎀pushing lines in is only to look neat🟰two equals signs ask whether two things are equal❓if runs its lines only when the condition is true
3
The weather box holds rain and the coins box holds seven. Which condition is false?
🔤weather == rain🔤weather = "rain"🔤weather != "rain"
4
The weather box holds rain and the coins box holds seven. Which condition is true?
🔤weather == rain🔤weather != "rain"🔤weather != "sun"
5
The weather box holds rain and the coins box holds seven. Which condition is false?
🔤coins >= 8🔤weather = "rain"🔤coins == 7
6
Which idea about if and else is not true?
❓if runs its lines only when the condition is true🟰two equals signs ask whether two things are equal♾️if runs its lines every time
7
Which idea about if and else is true?
❓if runs its lines only when the condition is trueone equals sign asks if two things are equal♾️if runs its lines every time
8
The weather box holds rain and the coins box holds seven. Which condition has a bug?
🔤weather == rain🔤coins == 7🔤weather != "rain"
9
Is it true that one equals sign asks if two things are equal?
YesNo
10
Which idea about if and else is true?
♾️if runs its lines every time↪️else runs when the condition is falseone equals sign asks if two things are equal
11
The weather box holds rain and the coins box holds seven. Which condition is true?
🔤coins == 7🔤weather != "rain"🔤weather == "sun"
12
The weather box holds rain and the coins box holds seven. Which condition is true?
🔤coins > 5🔤weather != "rain"🔤weather = "rain"
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.