Multiple Choice
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
Q1: In an activity diagram for an algorithm,
Q6: In indefinite repetition, an input value:<br>A) Should
Q7: To handle situations where a loop must
Q11: Pseudocode does not include:<br>A) Declarations.<br>B) Input/output.<br>C) Algorithms.<br>D)
Q12: Which of the following is true of
Q15: Specifying the order in which statements are
Q15: Which of the following is a repetition
Q18: Assuming that x is equal to 4,
Q19: If x initially contains the value 3,
Q27: Using a while loop's counter-control variable in