A. 6 2 3 4 5 1 B. 1 2 3 4 5 6 C. 2 3 4 5 6 6 D. 2 3 4 5 6 1
A. 3 B. 1 2 3 C. 1 2 D. 1
A. [1, 20, 30, 40, 50] B. {1 20 30 40 50} C. [1 20 30 40 50] D. {1, 20, 30, 40, 50}
A. 10. B. null C. 0 D. undefineD.
A. false B. true
A. true B. false
A. String[ ] a = new String [5]; for (int i = 0; i < 5; a[i++] = null); B. String[] a = new String [5]; C. String[] a = {"", "", "", "", ""}; D. String[5] a;
A. The program has a runtime error because the array element x[0] is not defineD. B. The program runs fine and displays x[0] is 0. C. The program has a compile error because the size of the array wasn't specified when declaring the array. D. The program has a runtime error because the array elements are not initializeD.
A. The program has a runtime error because a is null. B. The program has a compile error because xMethod(new double[5]) is incorrect. C. The program has a compile error because xMethod(new double[]{3, 3}) is incorrect. D. The program has a compile error because xMethod(new double[3]{1, 2, 3}) is incorrect.
A. The program displays 1 2 3 4 B. The program displays 0 0 3 4 C. The program displays 0 0 0 0 D. The program displays 0 0