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 | |
|---|---|---|
| 1data type | AValues have different data types such as number, text or true/false, and the type decides what the computer can do. | |
| 2"5" | BText type: the character 5 in quote marks, not a number you can add up | |
| 3A whole number is one of the three data types in this unit, and you can do sums with it | CThe kind of data a value is, such as a number, text or true/false | |
| 4A true/false value is a data type with only two possible values | D5 + 2 | |
| 5"5" is a number because it has a 5 in it | ETrue | |
| 6All values are the same type, so the computer can do the same things with them | FThe quote marks make "5" text. A value's type is decided by the kind of data it is, not just by how it looks. |
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 data a value is, such as a number, text or true/false. The data type decides what the computer can do with the value.print(type(5))score = 5
print(type(score))The data type of "5" is textThe data type of TRUE is true/false5 and "5" look the same.
They have different data types.