Multiple Choice
What is the output of the following Java code? int[] list = {0, 5, 10, 15, 20}; for (int j = 0; j < 5; j++) System.out.print(list[j] + " ") ; System.out.println() ;
A) 0 1 2 3 4
B) 0 5 10 15 20
C) 0, 5, 10, 15, 20
D) 0 5 10 15
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q39: What is the index number of the
Q40: Only a fixed number of elements can
Q41: When a boolean array object is instantiated,
Q42: The statement dataType[][][] arrayName; would declare a
Q43: Given the declaration int[] list = new
Q45: Which limitation of arrays does a vector
Q46: Arrays have a fixed number of elements.
Q47: Consider the following method definition. public static
Q48: The following statement creates alpha to be
Q49: Suppose that sales is a two-dimensional array