CIS1068 FIVE MINUTE TEST #5 March 16, 2010 (10) 1. Declare an integer array x with these 3 rows and 2 columns and store the value 7 in the second column of the third row. Think carefully about what you are doing. (5) 2. What is wrong in the code public class Moo { private int x; public static void main(String[] args) { x = 5; } (10) 3. What is printed out by the following code public static void foo(int[] a, int b, int c) { int temp = a[b]; a[b] = a[c]; a[c] = temp; } int[] j = {1,2,3}; foo(j, 1, 2); System.out.println(j[1]); (15) 4. Write the method public static int linear(int[] a, int who) which given as actual parameter an array a of ints and an integer who returns the position of who, or -1 if not there.