CSE 143 Quiz 3 11 Jul 2000 name ____________________________________________ student number _______________ section _______________ You have six minutes to complete this quiz. Write your answers on this page. 1. For each of lines in the following code fragment, circle "yes" if memory is being allocated dynamically, "no" otherwise. int times[100]; // circle one: yes / no int *p, *q; // circle one: yes / no p = new int; // circle one: yes / no q = p; // circle one: yes / no 2. Given the declarations in the following function definition, answer the questions below: void swap(book &a, book &b) { book *temp; *temp = a; a = b; b = *temp; } What is the type of each expression below? temp ___________________________________ *temp ___________________________________ &a ___________________________________