What is the output of the following code?

```
public class Test {
public static void main(String[] args) {
int[][] matrix =
{{1, 2, 3, 4},
{4, 5, 6, 7},
{8, 9, 10, 11},
{12, 13, 14, 15}};

for (int i = 0; i < 4; i++)
System.out.print(matrix[i][1] + " ");
}
}```

a. 1 2 3 4
b. 4 5 6 7
c. 1 3 8 12
d. 2 5 9 13
e. 3 6 10 14

d

Computer Science & Information Technology

You might also like to view...

Which of the following is NOT displayed on the first screen of the Form Wizard?

A) Layout B) Tables/Queries C) Available Fields D) Selected Fields

Computer Science & Information Technology

Slicers are easy-to-use filtering components that enable you to quickly filter data in a PivotTable report

Indicate whether the statement is true or false

Computer Science & Information Technology