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 Counter : INTEGER | AThe variable is used before it is declared. The DECLARE line must come first, then the assignment. | |
| 2DECLARE GameOver : BOOLEAN | BThe colon is missing. The correct format is DECLARE TotalToPay : REAL, with a space on each side of the colon. | |
| 3Declare a variable to store a price that has decimal places | CDECLARE Counter : INTEGER Counter ← 0 | |
| 4A variable must be declared before it is used, so DECLARE comes first | DCreates a variable called GameOver that can only hold TRUE or FALSE | |
| 5Counter ← 0 DECLARE Counter : INTEGER | ECreates a variable called Counter that can only store whole numbers | |
| 6DECLARE TotalToPay REAL | FDECLARE TotalToPay : REAL |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
DECLARE Counter : INTEGER — Creates a variable named Counter and states its data type (INTEGER) before it is used. The format is DECLARE <identifier> : <data type>, with a space on each side of the colon.DECLARE Counter : INTEGERDECLARE TotalToPay : REALDECLARE GameOver : BOOLEANDECLARE Counter : INTEGERDECLARE Counter : INTEGER
Counter ← 0