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 StudentNames : ARRAY[1:30] OF STRING | AINPUT is a keyword, so it cannot be an array identifier. Use a name such as Scores instead. | |
| 2DECLARE FOR : ARRAY[1:10] OF INTEGER | BA meaningful array identifier: the name tells you the elements are student names | |
| 3Identifiers are case insensitive, so StudentNames and STUDENTNAMES refer to the same array | CStudentNames[1] ← "Ava" OUTPUT STUDENTNAMES[1] | |
| 4A plural name suits an array that holds many values of the same kind, such as several temperatures | DNot allowed: FOR is a keyword so it can never be used as an array identifier | |
| 5DECLARE A : ARRAY[1:30] OF STRING | EThe name A says nothing about the contents. It should be a meaningful name such as StudentNames. | |
| 6DECLARE INPUT : ARRAY[1:5] OF INTEGER INPUT[1] ← 20 | FDECLARE Temperatures : ARRAY[1:7] OF REAL |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
meaningful identifier — An array name that says what its elements hold, like StudentNames not A. It must never be a keyword such as INPUT or FOR, and upper or lower case makes no difference.DECLARE StudentNames : ARRAY[1:30] OF STRING
StudentNames[1] ← "Ava"DECLARE Marks : ARRAY[1:5] OF INTEGER
MARKS[2] ← 75FOR Index ← 1 TO 3
INPUT TeamNames[Index]
NEXT IndexDECLARE StudentAges : ARRAY[1:30] OF INTEGERDECLARE ExamMarks : ARRAY[1:20] OF INTEGER