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

Here is a collection of if and if-else statements with semicolons in various places. Assume all variables have been declared and initialized. Which of these are correct and are likely to give the programmers intent? Which are correct but unlikely to give the programmer's intent? Give the error for the remaining.

a) if ( a > b ); a = b; else b = a; b) if(a > b ) a = b; else; b = a; c) if(a > b ) a = b; else b = a; d) if(a > b) a = b else b = a; e) if( x !=0 ) a = a / x

Computer Science & Information Technology

Active Resource manages the connections between application objects and database tables, mapping local application objects to web resources.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

_____ is a systems development technique that tests system concepts and provides an opportunity to examine input, output, and user interfaces before final decisions are made.?

A. ?Scrum B. ?Prototyping C. ?Modeling D. ?Rapid application development

Computer Science & Information Technology

While opening an email attachment, Pete, a customer, receives an error that the application has encountered an unexpected issue and must be shut down. This could be an example of which of the following attacks?

A. Cross-site scripting B. Buffer overflow C. Header manipulation D. Directory traversal

Computer Science & Information Technology