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 Count : INTEGER | AThe identifier contains a space. Identifiers must be one word with no spaces, e.g. TotalPrice. | |
| 2DECLARE Found : BOOLEAN | BDECLARE Name : STRING | |
| 3Declare a variable to store a price with a decimal point, such as 4.99 | CCreates a variable called Count that can only store whole numbers | |
| 4Declare a variable to store text such as a person's name | DThe colon is missing between the identifier and the data type. It should be DECLARE Count : INTEGER. | |
| 5DECLARE Total Price : REAL | ECreates a variable called Found that can only store TRUE or FALSE | |
| 6DECLARE Count INTEGER | 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.
DECLARE Count : INTEGER — Names a variable (Count) and gives its data type (INTEGER) before use. Other types: REAL, STRING, BOOLEAN. Identifiers are capitalised with no spaces.DECLARE Count : INTEGERDECLARE Price : REALDECLARE Name : STRINGDECLARE Found : BOOLEANDECLARE Total : INTEGER
Total <- 0