Professional Documents
Culture Documents
4. Forgetting to include a file (like math.h, conio.h) that is necessary will result in
A. compilation error
B. warning when the program is run
C. error at link time
D. warning when the program is compiled
15. 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)
16. Which of the following while clause will stop the loop when the value in the age variable is less than
the number 0?
A. while age < 0
B. while (age < 0)
C. while age >= 0;
D. while (age >= 0);
E. while (age >= 0)
17. You separate a derived class name from its access specifier with
A. a colon
B. two colons
C. at least one space
D. a semicolon
18. Virtual function is ______ class function which expected to be redefined in ______ class, so that
when reference is made to derived class object using pointer then we can call virtual function to
execute ________ class definition version.
a) Base, derived, derived
b) Derived, Derived, Derived
c) Base, derived, base
d) Base, base, derived