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 | AIsPassed can only store TRUE or FALSE | |
| 2DECLARE IsPassed : BOOLEAN | BAge can only store whole numbers, such as 15 or 42 | |
| 3A phone number should be stored as text because it can start with 0 and is never used in calculations | CCHAR holds only one character, but "Merit" is several characters. Grade should be declared as STRING, or the value should be a single character such as "M". | |
| 4A price such as 4.99 has a fractional part, so it needs the type for decimal numbers | DINTEGER cannot store a number with a fractional part like 72.5. Score should be declared as REAL, or the value should be a whole number. | |
| 5DECLARE Grade : CHAR Grade ← "Merit" | EDECLARE PhoneNumber : STRING | |
| 6DECLARE Score : INTEGER Score ← 72.5 | FDECLARE Price : REAL |
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 basic pseudocode data types: whole numbers, decimals, a single character, text of any length, and TRUE or FALSE. A phone number should be a STRING.DECLARE Age : INTEGER
Age ← 15DECLARE Price : REAL
Price ← 2.75DECLARE Grade : CHAR
Grade ← 'A'DECLARE PhoneNumber : STRING
PhoneNumber ← "0123456789"DECLARE IsValid : BOOLEAN
IsValid ← TRUE