QUESTION 21
Which one of the following statements is FALSE about arrays? (We assume array indexes start
at 1).
1. The 10th element of an array testing, can be referred to as testing[10].
2. If we want to set the 5th element of array what to 6, it can be done as follows: what[6] <- 5.
3. If scores is the name of an array, scores[3] would be the name of one of its elements.
4. Marks[2][3] would be an element of a two-dimensional array Marks.
QUESTION 22
Which of the following statements is TRUE about records?
1. A record is a collection of elements, possibly of different types.
2. An element of a record is referred to as for example record1[name].
3. A record has a name, and so does each field in the record.
4. A record will be used to define a class of 40 students.
Comments
Leave a comment