CIS1057 FIVE MINUTE TEST #7 November 2, 2010 (5) 1. Given the array {7, 5, 4, 2, 1}, show its content at the end of each loop iteration when doing selection sorting. (5) 2. What is printed out by this program? int x = 1; switch (x) { case 1: printf("1"); case 2: printf("2"); case 3: printf("3"); default: printf("\n"); } (10) 3. I find the following function prototype void foo(int n, int *a); and I have the declaration int table[7]; How can I call foo on table? explain. (10) 4. Implement the function double average(int m, int n, int a[m][n]) that that returns the average of the array a.