Object Oriented Programming Using C++ – Section 3

11. Which of the following calls a function named displayName, passing it no actual arguments?

A. call displayName;
B. call displayName ();
C. displayName;
D. displayName();

Correct Answer:  D. displayName();

12. The feature that allows you to use the same function name for separate functions that have different argument lists is called _____

A. overriding
B. overloading
C. constructing
D. destructing

Correct Answer:  B. overloading

13. Which of the following are valid characters constants?

A. ‘\n’
B. ‘\\’
C. ‘\0’
D. All of the above
E. None of the above

Correct Answer:  D. All of the above

14. With a template class, _____ type is generic

A. no
B. exactly one
C. at least one
D. at most one

Correct Answer:  C. at least one

15. If you want to use a class to define objects in many different programs, you should define the class in a C++ _____ file

A. header
B. program
C. source
D. text

Correct Answer:  A. header

Leave A Comment?

12 − four =