Solved

Which One of the Following Statements Is Correct About the Given

Question 65

Multiple Choice

Which one of the following statements is correct about the given code snippet?
Int[] somearray = new int[6];
For (int i = 1; i < 6; i++)
{
Somearray[i] = i + 1;
}


A) The for loop initializes all the elements of the array.
B) The for loop initializes all the elements except the first element.
C) The for loop initializes all the elements except the last element.
D) The for loop initializes all the elements except the first and last elements.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions