

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program?
public class Result { public static void main(String args[]) { int a[] = {5, 6, 7, 9, 11}; for ( int k = 0; k < a.length - 1; ++k) System.out.print(a[k] + " "); } } |
A. | 6 7 9 11 |
B. | 5 6 7 9 |
C. | 1 2 3 4 |
D. | 5 6 7 8 |
E. | None of these |
Answer» C. 1 2 3 4 | |