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 | |
|---|---|---|
| 1DECLARE Age : INTEGER | ADECLARE PhoneNumber : STRING | |
| 2DECLARE Grade : CHAR | BDECLARE Price : REAL | |
| 3A phone number or postcode must be stored as a STRING, because it can start with 0 and is never used in sums. | CAge can hold only whole numbers, such as 15 or 42, with no fractional part. | |
| 4A price such as 3.75 has a fractional part, so it needs the REAL data type, not INTEGER. | DA value that is only TRUE or FALSE should use the BOOLEAN data type, not STRING. | |
| 5DECLARE Postcode : INTEGER | EA postcode can start with 0 or contain letters, and you never do sums with it. It should be a STRING, not an INTEGER. | |
| 6DECLARE IsLoggedIn : STRING | FGrade holds exactly one character, such as 'A'. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
INTEGER, REAL, CHAR, STRING, BOOLEAN — The five data types, in order: whole number, number with a fractional part, one character, zero or more characters, TRUE or FALSE. A phone number is a STRING.DECLARE Age : INTEGERDECLARE Price : REALDECLARE Grade : CHARDECLARE PhoneNumber : STRINGDECLARE IsValid : BOOLEAN