Solved

Which Code Snippet Prints Out the Elements in a Partially

Question 93

Multiple Choice

Which code snippet prints out the elements in a partially filled array of integers?


A) for (int i = 0; i < myArray.length() ; i++)
{
System.out.print(myArray[i]) ;
}
B) for (int i = 0; i < myArray.currLength() ; i++)
{
System.out.print(myArray[i]) ;
}
C) for (int i = 0; i < currLength; i++)
{
System.out.print(myArray[i]) ;
}
D) for (int i = 0; i < myArray.length() ; i++)
{
System.out.print(myArray[currLength]) ;
}

Correct Answer:

verifed

Verified

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

Related Questions