Object Oriented Programming Using C++ – Section 3


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

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();
Advertisement

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
Advertisement

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
Advertisement

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
Advertisement

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
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?