Multiple Choice
What does the following statement do? int[] list = {5, 10, 15, 20};
A) It adds 4 int values to the array list.
B) It initializes list to have 20 int values.
C) It initializes list to have 4 int values.
D) It declares list but does not initialize it.
E) It causes a syntax error because it does not include new int[4] prior to the list of values.
Correct Answer:

Verified
Correct Answer:
Verified
Q15: A Java main method uses the parameter
Q16: Arrays have a built-in toString method that
Q17: How can you tell if a user
Q18: If int[] x = new int[15]; and
Q19: Code Example Ch 08-2<br>Assume you have an
Q21: Assume list is an array of int
Q22: A ragged array is a multidimensional array
Q23: Given the following code and assuming list
Q24: Which of the following is a legal
Q25: A two-dimensional array named sales holds the