Object Oriented Programming Using C++ – Section 8

26. With communicational cohesion

A. a tasks and the data are related
B. the tasks are related; the data are not
C. the data are related; the tasks are not
D. the tasks and the data are unrelated

Correct Answer:  C. the data are related; the tasks are not

27. The function printDataMembers() is mot likely a(n) ________

A. inspector functions
B. mutator functions
C. auxiliary functions
D. manager functions

Correct Answer:  A. inspector functions

28. The data type listed at the beginning of a value-returning function’s header indicates the type of data the function will _____

A. return
B. pass
C. receive

Correct Answer:  A. return

29. The code class Descendant : virtual public Ancestor indicates that

A. the members of Ancestor will be included more than once in Descendant
B. the members of Ancestor will be included only once in Descendant
C. the members of Descendant will be included more than once in Ancestor
D. the members of Descendant will be included only once in Ancestor

Correct Answer:  B. the members of Ancestor will be included only once in Descendant

30. Inheritance is the principle that

A. Classes with the same name must be derived from one another
B. Knowledge of a general category can be applied to more specific objects
C. C++ functions may be used only if they have logical predecessors
D. One function name may invoke different methods

Correct Answer:  B. Knowledge of a general category can be applied to more specific objects

Leave A Comment?

twenty − 1 =