Solved

Which of the Following Does Not Display Correct If Answer

Question 20

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents