Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

If a derived class uses the public access specifier, then _____
A:
public base class members remain public in the derived class
B:
protected base class members become public in the derived class
C:
both (a) and (b)
D:
neither (a) nor (b)
Answer: A
No answer description is available. Let's discuss.
Which of the following is the inequality operator?
A:
!=
B:
=
C:
==
D:
-->
Answer: A
No answer description is available. Let's discuss.
If you declare two objects as Customer firstCust, secondCust; which of the following must be true?
A:
Each object's nonstatic data members will be stored in the same memory location
B:
Each object will be stored in the same memory location
C:
Each object will have a unique memory address
D:
You cannot declare two objects of the same class
Answer: C
No answer description is available. Let's discuss.
Errors in a program are called
A:
accidents
B:
annoyances
C:
bugs
D:
mistakes
Answer: C
No answer description is available. Let's discuss.
To use one of the C++ built-in mathematical functions, you must include the _____ header file in your program
A:
calculation.h
B:
compute.h
C:
expression.h
D:
math.h
Answer: D
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz