Object Oriented Programming Using C++ – Section 2


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

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. Which of the following can be used to declare the main function?

A. void main
B. void Main()
C. void main()
D. main
E. either (b) or (c) can be used

Correct Answer:  C. void main()
Advertisement

47. You _____ write your own container classes

A. must
B. may
C. should not
D. must not

Correct Answer:  B. may
Advertisement

48. If an integer object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is

A. int
B. double
C. either (a) or (b)
D. neither (a) nor (b)

Correct Answer:  A. int
Advertisement

49. The highest level of cohesion is

A. functional cohesion
B. temporal cohesion
C. logical cohesion
D. sequential cohesion

Correct Answer:  A. functional cohesion
Advertisement

50. 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

Correct Answer:  C. at least one space
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?