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 | |
|---|---|---|
| 1scores[1] ← 10 | AWrong - array elements use square brackets, not round | |
| 2DISPLAY scores[i] | BDECLARE scores[5] OF INTEGER | |
| 3Declares an array of 5 integers named scores | CWrong - array declarations need a size in brackets | |
| 4Loops through every index in the array | DAssigns the value 10 to the first array element | |
| 5scores(1) ← 10 | EPrints the value stored at index i in the array | |
| 6DECLARE scores OF INTEGER | FFOR i FROM 1 TO 5 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
scores[1] — Accesses the array element at index 1, using square brackets to specify the position.DECLARE scores[5] OF INTEGERDISPLAY scores[i]FOR i FROM 1 TO 5DISPLAY scores[2]DECLARE scores[5] OF INTEGER