1) Were you present in this class (Yes or No answer) Answer: Yes (NOT A) 2) Assume a function is declared as follows: template void swap(T &a, T&b) and called as follows: int a,b; float c,d; double e,f; // ... swap(a,b); swap(c,d); swap(a,b); swap(d,c); How many instances of "swap" will actually be used? (numeric answer) Answer: 2. One with Int and one with Double 3) template struct TestStruct. { U var; }; t is of type TestStruct. Which of the following statements is correct? A) t->var = 7 B) t.var = 8 C) t.U = 4 D) t.var = 14 Answer: B 4) int i; try { i = 5; if (i != 5) throw 42; i = i+2; throw i; i = i+2; cout << i << endl; } catch (int j) { cout << j << endl; } What is the output of that code fragment (numeric answer) Answer: 7 (i=5, i=i+2, throw i, cout int value of exception) 5) int i,j; try { i = 7; for (j=0;j<7;j++) if (i==j) throw j+1; throw "14"; } catch (int f) { cout << f << endl; } A) 7 B) 8 C) 14 D) Program Crash Answer: D. A string exception is thrown, but only int exception is caught.