Object Oriented Programming Using C++ – Section 6

6. The best-written classes have

A. all functions private
B. all data public
C. no functions
D. None of the above

Correct Answer:  D. None of the above

7. Making class members inaccessible to nonmember functions is an example of

A. polymorphism
B. data hiding
C. redundancy
D. recursion

Correct Answer:  B. data hiding

8. Providing two or more constructors for the same class _____

A. requires different argument lists
B. requires different constructor names
C. requires different constructor types
D. is illegal

Correct Answer:  A. requires different argument lists

9. 3 is a _____ constant

A. character literal
B. named literal
C. numeric literal
D. string literal

Correct Answer:  C. numeric literal

10. _____ variables remain in memory until the statement block ends

A. Area
B. Global
C. Local
D. Reference
E. Value

Correct Answer:  C. Local

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

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

Leave A Comment?