Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1score = 250 | Astudents = 28 | |
| 2lives = 0 | BStores a whole number, 250, in a variable called score | |
| 3A whole number counts things like students in a class | Cheight = 1.5 | |
| 4A number with a decimal part is not a whole number | D3.5 has a decimal part, so it is not a whole number. Use 3 for lives. | |
| 5lives = 3.5 # whole number | EZero is a whole number, so this means the player has no lives left | |
| 6Zero is not a whole number | FWrong. Zero has no fraction or decimal part, so 0 is a whole number. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
whole number — A number with no fraction or decimal part, like 0, 7 or 250. We use whole numbers to count things, such as scores, lives or students. 3.5 is not a whole number.students = 28
print(students)lives = 0 # no lives leftscore = 10
score = score + 1
print(score)lives = 3
lives = lives - 1
print(lives)score = 250
print(score)
# 250 is a whole number