CIS71, Section 4 FIVE MINUTE TEST #7 October 24, 2006 (5) 1. Given the array {7, 5, 4, 1, 2}, show its content at the end of each loop iteration when doing insertion sorting. (5) 2. What is printed out by this program? int x = 2; switch (x) { case 1: printf("1"); case 2: printf("2"); case 3: printf("3"); default: printf("\n"); } (10) 3. The mode of a parameter could be IN, OUT, or INOUT. Say what it means with examples. (5) 4. I find the following function prototype void foo(const char * const s); What can you tell me about s? (10) 5. Implement the function double average(int m, int n, int a[m][n]) that that returns the average of the array a.