Computer Science 215 Quiz N Name ______________________ 1. To create a generic tiled plane that could be used as a back or side wall with the tile pattern in an arbitrary direction it was necessary to specify an additional vector. This vector a. lies in the plane itself b. is orthogonal to the planes normal c. specifies the direction d. all of the above of the tiling pattern 2. To determine if a hitloc lies in a spotlight's cone, take the dot product of the spotlights centerline with: a. a vector in the direction b. a vector pointing from of the ray being traced the hitloc to the spotlight center c. a vector from the spotlight d. a vector from the spotlight center to the hitloc center to the viewpoint. 3. The class view_t definition starts as follows: class view_t { friend class pixel_t; the "friend" declaration gives: a. view_t methods access to b. pixel_t methods access to the the private data of a private data of a view_t instance pixel_t instance c. both of the above d. neither of the above because "friend" only provides access to public data. 4. The obj_t class definition contains a virtual function virtual void getamb(double *){}; the sphere_t class which is derived from obj_t contains: virtual void getamb(double *w) {matamb(w);}; When obj->getamb(w); is invoked and the obj is actually a sphere_t the actual function that gets called is: a. always the one in obj_t b. always the one in sphere_t c. depends upon whether obj is declared obj_t *obj or sphere_t *obj; 5. If the declaration: virtual void getamb(double *){}; is changed to: virtual void getamb(double *); a. It will create a syntax b. it will correct a syntax error at compile time. error c. it will create a link time error unless an implementation of getamb() is added to objt.cpp