Solved

Which of the Following Does Not Display Correct If Answer

Question 23

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions