Object Oriented Programming Using C++ – Section 4


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. If you omit any constructor argument when you instantiate an object, you must use default values

A. for all parameters to the constructor
B. for all parameters to the right of the argument
C. for all parameters to the left of the argument
D. for no other parameters

Correct Answer: B. for all parameters to the right of the argument
Advertisement

47. The C++ expression p –> val means the same thing as

A. *p.val
B. *(p.val)
C. (*p).vai
D. p.val

Correct Answer: C. (*p).vai
Advertisement

48. Which of the following tells C++ to display numbers with zero decimal places?

A. setiosflags(0)
B. setiosflags(zero)
C. setprecision(0)
D. setprecision(zero)

Correct Answer: C. setprecision(0)
Advertisement

49. Code that has already been tested is said to be _____

A. inherited
B. reusable
C. reliable
D. polymorphic

Correct Answer: C. reliable
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?