Computer Science - Object Oriented Programming Using C++

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

Answer: Option C

Explanation:

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

27. 

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

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

Answer: Option A

Explanation:

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

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

Answer: Option A

Explanation:

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

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

Answer: Option B

Explanation:

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

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

Answer: Option B

Explanation:

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