Computer Science 102 Quiz 5 Name____________________ 1. According to Dr. Westall's theory of human behavior, which of the following emotions is most likely to motivate an individual to TAKE ACTION to confront or avoid a potentially harmful situation. a. despair b. hope c. fear d. happiness 2. In your ray tracing system, the INHERITANCE facility of an O-O language will be emulated by the use of: a. structure hierarchies of b. the use of function pointers increasing specialization that may be optionally overridden linked together via void *priv; pointers c. the use of typedef 3. Which is the proper way to declare a pointer to a function that returns an int and takes two ints as parameters: a. int pfun(int, int); b. int *pfun(int, int); c. int *(pfun)(int, int); d. int (*pfun)(int, int); 4. Which is the proper way to make the pointer point to a function named adder. a. pfun = adder; b. pfun = adder(0, 0); c. *pfun = adder; d. pfun = *adder; 5. Which of the following is not a type of illumination specified in a material_t structure: a. specular b. ambient c. diffuse d. incident