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:

Verified
Correct Answer:
Verified
Q10: Which one of the following statements is
Q66: What will be printed by the statements
Q67: Consider the following code snippet in Java
Q68: Assume the following variable has been declared
Q69: What is the output of the following
Q70: What is the output of the code
Q72: Which statements are true about the buffer
Q73: Assume the array of integers values has
Q75: Consider the following code snippet: String[] data
Q82: Your program needs to store an integer