Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Multiple Choice 1) The individual variables that together make up the array are

ID: 3685575 • Letter: M

Question

Multiple Choice 1) The individual variables that together make up the array are referred to as: (a) indexed variables (b) subscripted variables (c) elements of the array (d) all of the above What is the correct expression for accessing the 5th element in an array named (a) colors[3] (b) colors/4) (c) colors[5) (d) colors[6] 2) 3) Consider the following array myArray[0] myArray[1] myArray[2] myArray[3] 6 myArray[4 myArray[5)] -3 -1 the value of my Arayímy Aray)]- what is the value of myArray[myArray[1]-myArray[01] (a) 7 (b) 9 (c) -3 (d) 6

Explanation / Answer

1. D.

2. B.

3. C.

4. A.

5. B.

6. C.

7. C.

8. D.

9. C.

10. A.

11. C.

12. B.

13. D.