Computer Science - Object Oriented Programming Using C++

6. 

The best-written classes have

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

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

7. 

Making class members inaccessible to nonmember functions is an example of

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

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

9. 

3 is a _____ constant

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

10. 

_____ variables remain in memory until the statement block ends

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.