Object Oriented Programming Using C++ – Section 8


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. To include the double quotes as part of the control string we use the symbol

A. %”
B. “”
C. \”
D. #
E. None of the above

Correct Answer:  C. \”
Advertisement

47. A C++ statement must end in a

A. : (column)
B. , (comma)
C. . (period)
D. ; (semicolon)

Correct Answer:  D. ; (semicolon)
Advertisement

48. Student senior(); is a(n)_________

A. constructor call with no arguments
B. object instantiation
C. constructor call with all default arguments
D. prototype for a function that returns a student object

Correct Answer:   D. prototype for a function that returns a student object; (semicolon)
Advertisement

49. The statement int n[4] = {11, -13, 17, 105};

A. assigns the value -13 to [2] B. assigns the value 17 to n[2] C. is wrong; it gives an error message
D. assigns the value 18 to n[2]

Correct Answer:   B. assigns the value 17 to n[2]
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?