Multiple Choice
What is stored in alpha after the following code executes? int[] alpha = new int[5]; for (int j = 0; j < 5; j++) {alpha[j] = 2 * j; if (j % 2 == 1) alpha[j - 1] = alpha[j] + j;}
A) alpha = {0, 2, 4, 6, 8}
B) alpha = {3, 2, 9, 6, 8}
C) alpha = {0, 3, 4, 7, 8}
D) alpha = {0, 2, 9, 6, 8}
Correct Answer:

Verified
Correct Answer:
Verified
Q13: In row processing, a two-dimensional array is
Q14: If a method has both a variable
Q15: Vectors can be used to implement lists.
Q16: In which package is the class Vector
Q17: Given the following method heading public static
Q19: You can create an array of reference
Q20: Which method of the class vector would
Q21: Java stores two-dimensional arrays in a row
Q22: A Vector object can shrink during program
Q23: How many columns are in the array