Which of the following does not display correct if answer is equal to 7 and incorrect if answer is not equal to 7?

a. if (answer == 7) {
cout <<"correct";
}
else {
cout &<<"incorrect";
}
b. cout < c. cout<< (answer == 7 ? "correct": "incorrect";
d. answer == 7 ? cout << "correct": cout <<"incorrect";


b. cout <

Computer Science & Information Technology

You might also like to view...

What is the name for a broadcast sent to a specific subnet?

a. Multicast b. Broadcast c. Directed broadcast d. Sweep

Computer Science & Information Technology

Current search engines function by recognizing keywords

Indicate whether the statement is true or false

Computer Science & Information Technology

The Themes gallery is located on the _____ Ribbon tab.

A. Home B. Design C. Insert D. View

Computer Science & Information Technology

What does it mean to select text? List three types of text that you can select. List three things you can do with selected text. How do you deselect text? How do you select a word? How do you select a line?

What will be an ideal response?

Computer Science & Information Technology