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 | |
|---|---|---|
| 1CONSTANT Rate ← 6.50 | ACONSTANT MaxScore ← 100 | |
| 2CONSTANT Total ← Rate * 2 | BThe constant is set to another constant (Rate), not a literal. Use a literal such as CONSTANT Copy ← 6.50. | |
| 3A constant's value must be a literal, so a number written directly is allowed | CThe value is an expression using a variable. Use a literal such as CONSTANT Tax ← 0.2. | |
| 4A constant's value must be a literal, so a text value written directly in quotes is allowed | DNot valid: the value is an expression, not a literal | |
| 5CONSTANT Copy ← Rate | EValid: the constant is set to the literal value 6.50 | |
| 6CONSTANT Tax ← Price * 0.2 | FCONSTANT School ← "Oakfield" |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
CONSTANT Rate ← 6.50 — A constant must be set to a literal value, such as 6.50. It cannot be given a variable, another constant or an expression like Rate * 2.CONSTANT Rate ← 6.50CONSTANT Rate ← 6.50// The maximum score is 100
CONSTANT MaxScore ← 100CONSTANT Rate ← 5
// Literal for double the rate
CONSTANT Double ← 10DECLARE Count : INTEGER
CONSTANT Limit ← 10