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 Score : INTEGER | AThe identifier x is not meaningful, so it does not show what the variable stores. A name like Age or Score is better, for example DECLARE Age : INTEGER. | |
| 2DECLARE Grade : CHAR | BCreates a variable called Score that stores whole numbers only | |
| 3A variable that stores a number with a decimal part, such as a price | CCreates a variable called Grade that stores a single character such as 'A' | |
| 4A variable that stores only TRUE or FALSE, such as whether a number was found | DThe colon is missing between the identifier and the data type. It should be DECLARE Name : STRING. | |
| 5DECLARE Name STRING | EDECLARE Price : REAL | |
| 6DECLARE x : INTEGER | FDECLARE Found : BOOLEAN |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
DECLARE Score : INTEGER — Creates a variable called Score with a stated data type. Types: INTEGER, REAL, STRING, CHAR, BOOLEAN. Pick a meaningful name.DECLARE Score : INTEGER
Score ← 25DECLARE Price : REAL
Price ← 4.5DECLARE Initial : CHAR
Initial ← 'A'DECLARE IsPassed : BOOLEAN
IsPassed ← TRUEDECLARE Height : REAL
Height ← 1.75