Object Oriented Programming Using C++ – Section 7

11. You may override the class access specifier for_____

A. public members
B. public and protected members
C. any specific class members you choose
D. no clas smembers

Correct Answer:  C. any specific class members you choose

12. The null character needs a space of

A. zero bytes
B. one byte
C. three bytes
D. four bytes
E. None of the above

Correct Answer:  B. one byte

13. The number of structures than can be declared in a single statement is

A. one
B. two
C. three
D. unlimited

Correct Answer:  D. unlimited

14. The cout << sales[0] + sales[1]; statement will______

A. display 22000
B. display 10000 + 12000
C. display sales[0] + sales[l] D. result in an error

Correct Answer:  A. display 22000

15. The most efficient data type for a variable that stores the letter C is the _____ data type

A. Character
B. Double
C. Float
D. Long Integer
E. Short Integer

Correct Answer:  A. Character

Leave A Comment?

one × one =