Computer Science 102 Quiz C Name ______________________ 1. Which of the following assertions comparing C++ to standard C is FALSE a. C++ supports O-O classes but b. C++ provides a formal inheritance C does not mechanism that C does not. c. C++ supports function and d. C++ compilers produce code that operator overloading but C typically executes much faster than does not. the same program in C. 2. In a typical C++ program a. class getter/setter functions b. class getter/setter functions are public but data variables are private but data variables are private. are public. c. both are almost always private d. both are almost always public 3. For this statement to work correctly: cam = new cam_t(stdin); The variable cam should be declared: a. cam_t *cam; b. cam_t cam; c. cam_t cam(stdin); 4. If the cam_t class provides multiple constructors, the one that is actually used is: a. the first one b. the last one c. randomly chosen d. the one whose formal parameters match the actual arguments passed when a new instance of the class iscreated 5. Suppose the cam_t class has a private member named cookie. Within a cam_t member function the value can be correctly accessed in which of the following ways (circle ALL that are correct) a. cookie = CAM_COOKIE; b. this.cookie = CAM_COOKIE; c. this->cookie = CAM_COOKIE;