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 | |
|---|---|---|
| 1StudentNames[1] ← "Ali" | AColours[2] ← "Blue" | |
| 2Scores[3] ← 50 Scores[3] ← 72 | BMarks[4] ← 85 | |
| 3A string value written into a STRING array element must be inside double quotes | CThe string Ali has no double quotes, so it is read as a variable name instead of text. It should be "Ali". | |
| 4The value must match the array data type, so an INTEGER array element is given a whole number | DElement 3 ends up holding 72, because the second assignment replaces the old value 50 | |
| 5StudentNames[1] ← Ali | EMarks is an INTEGER array, so a string cannot be stored in it. The value must be a whole number such as 90. | |
| 6Marks[2] ← "high" | FStores the string "Ali" in element 1 of the StudentNames array |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
StudentNames[1] ← "Ali" — Stores a value in one array element using the assignment operator ←. The value must match the array's data type, and it replaces any old value already in that element.StudentNames[1] ← "Ali"DECLARE StudentNames : ARRAY[1:3] OF STRING
StudentNames[2] ← "Mia"StudentNames[1] ← "Ali"
StudentNames[1] ← "Ben"DECLARE Marks : ARRAY[1:5] OF INTEGER
Marks[1] ← 85DECLARE StudentNames : ARRAY[1:3] OF STRING
StudentNames[3] ← "Zoe"