Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

_____ variables remain in memory until the statement block ends
A:
Area
B:
Global
C:
Local
D:
Reference
Answer: C
No answer description is available. Let's discuss.
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: A
No answer description is available. Let's discuss.
Making class members inaccessible to nonmember functions is an example of
A:
polymorphism
B:
data hiding
C:
redundancy
D:
recursion
Answer: B
No answer description is available. Let's discuss.
The best-written classes have
A:
all functions private
B:
all data public
C:
no functions
D:
None of the above
Answer: D
No answer description is available. Let's discuss.
When two types are used in a function template and one is labeled T, the other
A:
must also be named T
B:
must be named U
C:
can be any legal C++ identfier
D:
it is illegal to have two types
Answer: A
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz