What is the output of the following program?

```
public class Test {
public static void main(String[] args) {
int[][] values = {{3, 4, 5, 1}, {33, 6, 1, 2}};

for (int row = 0; row < values.length; row++) {
System.out.print(m(values[row]) + " ");
}
}

public static int m(int[] list) {
int v = list[0];
for (int i = 1; i < list.length; i++)
if (v < list[i])
v = list[i];
return v;
}
}
```
a. 3 33
b. 1 1
c. 5 6
d. 5 33
e. 33 5


d

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

a) A method that calls itself indirectly is not an example of recursion. b) Recursion can be efficient in computation because of reduced memory-space usage. c) When a recursive method is called to solve a problem, it actually is capable of solving only the simplest case(s), or base case(s). d) To make recursion feasible, the recursion step in a recursive solution must resemble the original problem, but be a slightly larger version of it.

Computer Science & Information Technology

Which of the following is not a VBScript sub-type?

a) string b) integer c) variant d) boolean

Computer Science & Information Technology

In your home or office, when you have multiple computers that need to share an Internet connection, printer, or files, you will want to connect them to a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

In a stacked layout, labels display the ________ names in the left column

Fill in the blank(s) with correct word

Computer Science & Information Technology