Solved

Consider the Following 2-Dimensional Array

Question 71

Multiple Choice

Consider the following 2-dimensional array. Select the statement that gives the number of columns in the third row.
Int[][] counts =
{
{ 0, 0, 1 },
{ 0, 1, 1, 2 },
{ 0, 0, 1, 4, 5 },
{ 0, 2 }
};


A) int cols = counts[2].size() ;
B) int cols = counts.length[2];
C) int cols = counts.length;
D) int cols = counts[2].length;

Correct Answer:

verifed

Verified

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

Related Questions