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 | AA comma is used between the bounds. It must be a colon, so write [1:30]. | |
| 2DECLARE Marks : ARRAY[1:25] OF INTEGER | BCreates an array of 25 INTEGER elements, numbered from 1 to 25 | |
| 3An array declaration must state the lower bound and upper bound inside square brackets, separated by a colon | CThe data type is missing. OF STRING must be added after the bounds. | |
| 4Every element in an array has the same data type, which is stated after OF | DDECLARE Scores : ARRAY[1:10] OF INTEGER | |
| 5DECLARE StudentNames : ARRAY[1,30] OF STRING | ECreates an array of 30 STRING elements, numbered from 1 to 30 | |
| 6DECLARE StudentNames : ARRAY[1:30] | FDECLARE Names : ARRAY[1:20] OF STRING |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
DECLARE StudentNames : ARRAY[1:30] OF STRING — Creates a fixed-length array. Its 30 elements are numbered from lower bound 1 to upper bound 30, and every element holds the same data type, here STRING.DECLARE StudentNames : ARRAY[1:30] OF STRINGDECLARE StudentNames : ARRAY[1:30] OF STRINGDECLARE StudentNames : ARRAY[1:30] OF STRINGDECLARE StudentNames : ARRAY[1:30] OF STRING// 30 whole-number marks
DECLARE Marks : ARRAY[1:30] OF INTEGER