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. \”

47. A C++ statement must end in a

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


Correct Answer:  D. ; (semicolon)

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)

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]

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

three × 4 =