Multiple Choice
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 << answer == 7 ? "correct" : "incorrect";
C) cout << (answer == 7 ? "correct" : "incorrect") ;
D) answer == 7 ? cout << "correct" : cout << "incorrect";
Correct Answer:

Verified
Correct Answer:
Verified
Q18: Assuming that x is equal to 4,
Q19: If x initially contains the value 3,
Q20: Which of the following will not increment
Q21: Which of the following is a repetition
Q22: Which of the following is not a
Q24: A block:<br>A) Must contain exactly three statements.<br>B)
Q25: The data type bool:<br>A) Can take on
Q26: Which of the following is true of
Q27: Using a while loop's counter-control variable in
Q28: How many times will the following loop