Object Oriented Programming Using C++ – Section 6

31. The _____ function returns the uppercase equivalent of a character

A. caseupper
B. charupper
C. toupper
D. uCase
E. upper

Correct Answer:  C. toupper
Advertisement

32. When you instantiate a derived class object, a constructor for the derived class _____

A. is not called
B. is called prior to the base class constructor
C. is called simultaneously with the base class constructor
D. None of the above

Correct Answer:  D. None of the above
Advertisement

33. A constructor may be _____

A. provided automatically by C++
B. written by you
C. either (a) or (b).
D. neither (a) nor (b).

Correct Answer:  C. either (a) or (b).
Advertisement

34. Software that can be used in applications other than the one for which it was originally written is called

A. recyclable
B. inherited
C. reusable
D. cheating

Correct Answer:  C. reusable
Advertisement

35. Which of the following statements is false?

A. A class encapsulates all of an object’s attributes and behaviors
B. An example of an attribute is the minutes variable in a time class
C. An example of a behavior is the setTime function in a time class
D. A class is considered an object
E. An object created from a class is referred to as an instance of the class

Correct Answer:  D. A class is considered an object
Advertisement

Leave A Comment?