Multiple Choice
Which one of the following statements is correct for the given code snippet?
Int[] number = new int[3]; // Line 1
Number[3] = 5; // Line 2
A) Line 2 declares and initializes an array of three elements with value 5.
B) Line 2 causes a bounds error because 3 is an invalid index number.
C) Line 2 initializes the third element of the array with value 5.
D) Line 2 initializes all the elements of the array with value 5.
Correct Answer:

Verified
Correct Answer:
Verified
Q5: Consider the following code snippet: public static
Q6: What is the output of the following
Q7: The enhanced for loop<br>A) is convenient for
Q8: Consider the telephone book as a physical
Q9: Which one of the following is a
Q11: The integer array numbers will be filled
Q12: Which one of the following statements is
Q13: What will be printed by the statements
Q14: Assume the array of integers values has
Q77: What is the result of the following