Solved

What Is the Purpose of This Code

Question 52

Multiple Choice

What is the purpose of this code?
For ( int i = 0; i < arrayName.length; i++ )
{
For ( int j = 0; j < arrayName[i].length; j++ )
{
// process element arrayName[i][j]
}
}


A) It is the general pattern for processing the elements of a two-dimensional array called arrayName in row-first, column-second order.
B) It is the general pattern for processing the elements of a single-dimensional array called arrayName in row-first, column-second order.
C) It is the general pattern for processing the elements of a two-dimensional array called arrayName in column-first, row-second order.
D) There is not enough information to draw a conclusion.

Correct Answer:

verifed

Verified

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

Related Questions