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 | |
|---|---|---|
| 1NumberOfPlayers | AA correct Pascal case identifier: each word starts with a capital letter, with no spaces or underscores | |
| 2Total2 | BThe name contains an underscore. Identifiers may only use letters and digits, so it should be PlayerScore. | |
| 3A name that describes its purpose, so the reader knows what the variable stores | CDECLARE AverageMark : REAL | |
| 4Single letters such as i and j are allowed as array indices | DA valid identifier: it starts with a capital letter and uses only letters and digits | |
| 5DECLARE Player_Score : INTEGER | EThe name starts with a digit. An identifier must start with a letter, for example SecondPlace. | |
| 6DECLARE 2ndPlace : INTEGER | FFOR i ← 1 TO 10 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
NumberOfPlayers — An identifier in Pascal case: a variable or constant name using only letters and digits, starting with a capital, with each word capitalised and no spaces or underscores.DECLARE NumberOfPlayers : INTEGER
NumberOfPlayers ← 4DECLARE TotalScore : INTEGER
TotalScore ← 0DECLARE TotalScore : INTEGER
TotalScore ← 0
OUTPUT TotalScoreFOR i ← 1 TO 10
OUTPUT Marks[i]
NEXT iCONSTANT MaxScore ← 100
DECLARE Score : INTEGER
IF Score > MaxScore THEN