Object Oriented Programming Using C++ – Section 8

16. A data member holds a 1 or 0 depending on whether taxes have been paid. The best identifier for this member is _____

A. taxes
B. paidTaxes
C. taxesArePaid
D. code

Correct Answer:  B. paidTaxes

17. Assume a class Derv that is privately derived from class Base. An object of class Derv located in main() can access

A. public members of Base
B. protected members of Base
C. private members of Base
D. public members of Derv

Correct Answer:  A. public members of Base

18. Which of the following is an access specifier?

A. particular
B. shielded
C. protected
D. safe

Correct Answer:  C. protected

19. Machine code is _____

A. edited code
B. source code
C. the 0s and 1s that the computer can understand
D. both (b) and (c)

Correct Answer:  C. the 0s and 1s that the computer can understand

20. The contents of two pointers that point to adjacent of type float differ by

A. one bytes
B. two bytes
C. three bytes
D. four bytes

Correct Answer:  D. four bytes

Leave A Comment?

four × 5 =