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

21. Files whose names end in .h are called _____ files

A. handy
B. header
C. helper
D. helping

Correct Answer: B. header
Advertisement

22. When accessing a structure member, the identifier to the left of the dot operator is the name of

A. a structure member
B. a structure tag
C. a structure variable
D. the keyword struct

Correct Answer: C. a structure variable
Advertisement

23. Assume that a program contains a programmer-defined void function. When C++ encounters the function’s
closing brace (}), C++ returns to the statement _____

A. immediately above the statement that called the function
B. that called the function
C. immediately below the statement that called the function

Correct Answer: C. immediately below the statement that called the function
Advertisement

24. Inheritance occurs when a class adopts all the traits of _________

A. an object
B. a parent class
C. a variable
D. a function

Correct Answer: B. a parent class
Advertisement

25. Template classes that have already been written to perform common class tasks are called _____

A. container classes
B. receptacle classes
C. repository classes
D. alembic classes

Correct Answer: A. container classes
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?