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 TotalToPay : REAL | AThe colon between the identifier and the data type is missing. It should be DECLARE Counter : INTEGER | |
| 2DECLARE GameOver : BOOLEAN | BCreates a variable called GameOver that can only store TRUE or FALSE | |
| 3A DECLARE line gives the variable name first, then a colon, then its data type | CCreates a variable called TotalToPay that stores a real number, such as a price with decimals | |
| 4Use one DECLARE line for each variable, so two variables need two lines | DDECLARE Counter : INTEGER | |
| 5DECLARE Counter INTEGER | ETwo variables are declared on one line. Each variable needs its own DECLARE line | |
| 6DECLARE Counter, Total : INTEGER | FDECLARE Score : INTEGER DECLARE GameOver : BOOLEAN |
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 called Counter with the data type INTEGER. Form: DECLARE <identifier> : <data type>. Use one DECLARE line per variable.DECLARE Counter : INTEGERDECLARE TotalToPay : REALDECLARE GameOver : BOOLEANDECLARE Counter : INTEGERDECLARE Counter : INTEGER
Counter ← 0