

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program? class evaluate { public static void main(String args[]) { int arr[] = new int[] {0 , 1, 2, 3, 4, 5, 6, 7, 8, 9}; int n = 6; n = arr[arr[n] / 2]; System.out.println(arr[n] / 2); } } |
A. | 3 |
B. | 0 |
C. | 6 |
D. | 1 |
Answer» E. | |