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 | |
|---|---|---|
| 1age = 11 | AA name is text, because it is made of letters and sits inside quote marks. | |
| 2name = "Maya" | BA house number is just a label for a place, so adding house numbers makes no sense. It is better stored as text. | |
| 3The question "Is it raining?" can only be answered yes or no, so its data type is true/false. | CisRaining = True | |
| 4A postcode like 3000 is a label, not an amount. You never add postcodes, so it is text. | Dpostcode = "3000" | |
| 5isRaining = "True" | EThe true/false answer was put in quote marks, which turns it into text instead of a true/false value. | |
| 6houseNumber = 12 + 4 (to find the average house) | FAn age is a number, because you can count with it and calculate with it. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
data type — The kind of value you have. Look at what it is: a number to count or calculate with, text in quote marks, or an answer that is only true or false. A postcode is text, not a number.name = "Mia" # type: textage = 11 # type: numberraining = True # type: true/falsepostcode = "3000"
# type: textdoor = "12"
# Quote marks mean the value is text