Computer Science - Object Oriented Programming Using C++

31. 

The _____ function returns the uppercase equivalent of a character

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

33. 

A constructor may be _____

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.