Object Oriented Programming Using C++ – Section 8


Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

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
Advertisement

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
Advertisement

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
Advertisement

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
Advertisement

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
Advertisement

Warning: Undefined variable $in_same_cat in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Warning: Undefined variable $excluded_categories in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Leave A Comment?