Computer Science 215 Quiz O Name ______________________ 1. In the C++ design presented in class: a. obj_t was a base class and b. obj_t was a base class and sphere_t was a derived class sphere_t was a derived class c. both classes were unrelated peer classes 2. A derived class should be: a. a generalization of the base b. bear no relationship to the class the base class c. a specialization of the base class 3. Suppose a tiled plane class, tplane_t, is a derived from class plane_t which is in turn derived from classes obj_t and material_t. The correct way to express this relationship is: a. class tplane_t: public obj_t, public material_t b. class tplane_t: public plane_t c. class tplane_t: public obj_t, public material_t, public plane_t 4. The tplane_t constructor begins as follows tplane_t::tplane_t( FILE *in, FILE *out, int otype, int oid) : plane_t(in, out, otype, oid) if the : plane_t(in, out, otype, oid) text is deleted a. the plane_t constructor will no b. there will be no difference at longer be called when a tplane_t all in the behavior of the is created program c. a plane_t constructor will be called but it will be the default constructor instead of the one with 4 parameters 5. Suppose the tplane_t::dump_obj() function contains the following code: void tplane_t::dump_obj( FILE *out) { plane_t::dump_obj(out); a. The plane_t:: prefix in the b. the plane_t:: prefix is serves line shown will create a only to document whats going on. syntax error Removing it will have no effect on program behavior c. Removing the plane_t:: prefix will cause an infinite recursion loop