Which code fragment, when inserted at line 3, enables the code to print 10:20?

Given the code fragment:

Which code fragment, when inserted at line 3, enables the code to print 10:20?
A. int[] array n= new int[2];
B. int[] array; array = int[2];
C. int array = new int[2];
D. int array [2] ;

Download Printable PDF. VALID exam to help you PASS.

7 thoughts on “Which code fragment, when inserted at line 3, enables the code to print 10:20?

  1. First of all, none of the available options is correct. However, the closest one is A, only when the typo is corrected by removing the “n” from the line.

Leave a Reply

Your email address will not be published.