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:
Verified
Q23: Consider the following code snippet:
String[] data =
Q43: Which one of the following code snippets
Q45: Consider the following code snippet:
Int cnt =
Q47: Is there any thing wrong with the
Q50: Consider the following code snippet. Which statement
Q51: Which one of the following is the
Q52: Why is the following method header invalid?
Q53: Consider the following code snippet:
Int[][] numarray =
{
{
Q73: Which one of the following statements is
Q74: How many elements can be stored in
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents