Multiple Choice
Which one of the following is the correct definition for initializing data in a two-dimensional array of three rows and two columns?
A) int[][] arr =
{
{ 1, 1, 1 },
{ 2, 2, 2 },
};
B) int[][] arr =
{
{ 1, 1 },
{ 2, 2 },
{ 3, 3 }
};
C) int[][] arr =
{
{ 1, 1 }
{ 2, 2 }
{ 3, 3 }
};
D) int[][] arr =
{
{ 1, 1, 1 }
{ 2, 2, 2 }
{ 3, 3, 3 }
};
Correct Answer:

Verified
Correct Answer:
Verified
Q6: When an integer literal is added to
Q85: Which one of the following statements about
Q97: Consider the following line of code for
Q98: Assume the following variable has been declared
Q99: Select the statement that reveals the logic
Q100: Which statement is true about the code
Q101: Which one of the following statements is
Q103: Is there any thing wrong with the
Q105: What is the valid range of index
Q107: What is the output of the following