1) 10 points 2 points each. a) passwd b) a.out c) i) no ii) yes iii) no 2) 20 points a) 4 4 27 b) 4 4 23 c) C D E F d) NONE e) E 3) 30 points **** i: 0 j: 4 k: 1 loop: 2 j: 3 j: 3 k: 2 loop: 3 j: 2 **** i: 1 j: 4 k: 2 loop: 3 j: 3 **** i: 2 j: 4 k: 3 loop: 4 j: 3 done 4) 15 points "It inputs a number then prints out all factors of that number that are less than or equal to the square root of the number." We also accepted the following, which is what we had INTENDED the program to do (we made a small mistake): "It inputs a number then prints out all of its factors." 5) 25 points Below are two solutions -- either one is acceptable. Solution #1 =========== #include main() { int i, j, k, x, y, pow; scanf("%d%d", &x, &y); for(i = 1; i <= x; i++) { for(j = 1; j <= y; j++) { pow = 1; for(k = 0; k < j; k++) pow *= i; printf("%d ", pow); } printf("\n"); } return 0; } Solution #2 =========== #include main() { int i, j, x, y, pow; scanf("%d%d", &x, &y); for(i = 1; i <= x; i++) { pow = 1; for(j = 1; j <= y; j++) { pow *= i; printf("%d ", pow); } printf("\n"); } return 0; }