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
Q3: In an activity diagram for an algorithm,
Q5: Specifying the order in which statements are
Q8: The conditional operator (?:):
A) Is the only
Q10: A block:
A) Must contain exactly three statements.
B)
Q12: Which of the following is true of
Q15: Which of the following is a repetition
Q16: How many times will the following loop
Q19: Pseudocode does not include:
A) Declarations.
B) Input/output.
C) Algorithms.
D)
Q22: Assuming that x is equal to 4,
Q29: Which of the following operations has the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents