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

16. A data member holds a 1 or 0 depending on whether taxes have been paid. The best identifier for this member is _____

A. taxes
B. paidTaxes
C. taxesArePaid
D. code

Correct Answer:  B. paidTaxes
Advertisement

17. Assume a class Derv that is privately derived from class Base. An object of class Derv located in main() can access

A. public members of Base
B. protected members of Base
C. private members of Base
D. public members of Derv

Correct Answer:  A. public members of Base
Advertisement

18. Which of the following is an access specifier?

A. particular
B. shielded
C. protected
D. safe

Correct Answer:  C. protected
Advertisement

19. Machine code is _____

A. edited code
B. source code
C. the 0s and 1s that the computer can understand
D. both (b) and (c)

Correct Answer:  C. the 0s and 1s that the computer can understand
Advertisement

20. The contents of two pointers that point to adjacent of type float differ by

A. one bytes
B. two bytes
C. three bytes
D. four bytes

Correct Answer:  D. four bytes
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?