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. 2 5 9 13

Computer Science & Information Technology

You might also like to view...

When more data is stored in an array than has been allocated it is called ___________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A class diagram consists of a ____ divided into three sections.

A. square B. rectangle C. circle D. triangle

Computer Science & Information Technology

Which is a type of cell phone attack in which the attacker's phone appears to be a legitimate roaming cell phone?

a. Cell phone cloning b. Tumbling c. Eavesdropping d. Bluejacking

Computer Science & Information Technology

A multicast is characterized by which of the following? (Select all that apply.)

A) It uses class C addressing. B) It uses Class D addressing. C) It is used when messages are sent to a specific group of networking devices. D) None of these answers are correct.

Computer Science & Information Technology