1.

What is the output of this program?public class arr_output { public static void main(String args[]) { int arr_var [] = new int[20]; for (int j = 0; j < 20; ++j) { arr_var[j] = j; System.out.print(arr_var[j] + " "); j++; } } }

A. 0 2 4 6 8 10 12 14 16 18
B. 2 4 6 8 10 12 14 16 18
C. 2 4 6 8 10
D. 0 2 4 6 8 10
E. 0 1 2 3 4 5 6 7 8 9 10
Answer» B. 2 4 6 8 10 12 14 16 18


Discussion

No Comment Found

Related MCQs