Object Oriented Programming Using C++ – Section 6


Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

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
Advertisement

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)
Advertisement

48. The right shift operator is represented by the symbol

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

Correct Answer:  B. >>
Advertisement

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
Advertisement

Warning: Undefined variable $in_same_cat in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Warning: Undefined variable $excluded_categories in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Leave A Comment?