213k views
6 votes
Which of the following statements is true?

Group of answer choices

1.An array can only be used to hold number data.

2.An index refers to the position of a particular element in an array.

3.An index does not need to be used when looping through an array.

4.Only a while loop can be used when iterating through an array.

2 Answers

8 votes
An array can hold any data type, it just has to have the same data type. The right answer is 2.
User YScharf
by
5.4k points
2 votes
1 an array can only be used to hold number data
User Tom Moser
by
5.0k points