Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

If no constructors can specified for a derived class, objects of the derived class will use the constructors in the base class
A:
True
B:
False
C:
D:
Answer: A
No answer description is available. Let's discuss.
Code that has already been tested is said to be _____
A:
inherited
B:
reusable
C:
reliable
D:
polymorphic
Answer: C
No answer description is available. Let's discuss.
Which of the following tells C++ to display numbers with zero decimal places?
A:
setiosflags(0)
B:
setiosflags(zero)
C:
setprecision(0)
D:
setprecision(zero)
Answer: C
No answer description is available. Let's discuss.
The C++ expression p --> val means the same thing as
A:
*p.val
B:
*(p.val)
C:
(*p).vai
D:
p.val
Answer: C
No answer description is available. Let's discuss.
Whis is true?
A:
A derived class may have more than one base class
B:
A base class may have more than one derived class
C:
both (a) and (b)
D:
neither (a) nor (b)
Answer: C
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz