Computer Science 102 Quiz D Name ______________________ 1. A declaration such as the following: friend material_t *material_find(model_t *, char *); a. means that material_find() b. means that the material_find() is a class method of the function can access the private material_t class variables of an instance of the material_t class to which it holds a pointer. c. Both (a) and (b) are true d. Neither (a) or (b) is true 2. In the O-O ray tracer a. the plane_t is a base class and b. the object_t is a base class and the object_t a derived class the plane_t a derived class c. both are base classes d. both are derived classes 3. When a new instance of a plane_t is created a. only the plane_t's constructor b. only the object_t's constructor will be called will be called c. the plane_t's constructor will d. the object_t's constructor will execute after the object_t's execute after the plane_t's constructor completes. constructor completes 4. In a C++ program a function whose mission is to process a collection of object_t's (e.g. find_closest_object) a. must be an object_t class method b. must be a standalone C function c. should be a standalone C function or a method from a class OTHER THAN object_t. 5. Suppose the fplane_t dumper function contains the following syntax void fplane_t::dumper( FILE *out) { plane_t::dumper(out); which is designed to invoke the dumper function of the plane class just above it. Circle all of the answers below that are TRUE. a. this is THE correct way to do b. the presence of plane_t:: what is intended will cause a syntax error and it needs to be removed c. removing plane_t:: will result in an infinite recursion in which d. the program will work as fplane_t::dumper repeatedly intended with or without calls itself. plane_t::