Object Oriented Programming Using C++ – Section 6

46. A class hierarchy

A. describes “is a kind of” relationships
B. describes “has a” relationships
C. shows the same relationships as an organization chart
D. shows the same relationships as a family tree

Correct Answer:  A. describes “is a kind of” relationships

47. Which of the following C++ expressions is equivalent to the mathematical expression 53 ?

A. 5 ^ 3
B. cube(5)
C. pow (3, 5)
D. pow(5, 3)
E. sqrt (5, 3)

Correct Answer:  D. pow(5, 3)

48. The right shift operator is represented by the symbol

A. >
B. >>
C. ->
D. <
E. None of the above

Correct Answer:  B. >>

49. In C++, class definitions are most often

A. stored with each program that uses them
B. stored in a header file that is included in the programs that use them
C. stored in a folder that you paste into every new project
D. retyped for every new project

Correct Answer:  B. stored in a header file that is included in the programs that use them

Leave A Comment?

three × 2 =