Which of the following statements displays the contents of a string called ‘class’ correctly?

A. cout << “I have “ class “on Mondays”;
B. cout<< “I have “ << class << “on Mondays”;
C. cout<< “I have << class << on Mondays”;
D. cout<< “I have ‘class’ on Mondays”;

B

Computer Science & Information Technology

You might also like to view...

Autonomy is defined as ________

A) working without continual direction and control B) repressing inappropriate behavior C) feeling confident and excited about learning new skills D) working for something larger

Computer Science & Information Technology

The ________ property of an ASPX page specifies the text that appears in the client browser’s title bar.

a) text b) title c) titleBar d) ID e) name

Computer Science & Information Technology