Which of the following statements about arrays are true?
A. An array is a group of variables containing values that all have the same type.
B. Elements are located by index.
C. The length of an array c is determined by the expression c.length();.
D. The zeroth element of array c is specified by c[0].
a. A, C, D.
b. A, B, D.
c. C, D.
d. A, B, C, D.
b. A, B, D.
Computer Science & Information Technology
You might also like to view...
What is the value of x after execution of the following code segment?
int ctr = 0; int x = 3; while (ctr < 2) { x = x + 4; ctr = ctr + 1; }
Computer Science & Information Technology
Every object used in an object-oriented program is created from a ____, which is a pattern that the computer uses to create the object.
A. class B. basic type C. structure D. template
Computer Science & Information Technology