What will the following segment of code output?
score = 40;
if (score > 95)
cout << "Congratulations!\n";
cout << "That's a high score!\n";
cout << "This is a test question!" << endl;
A) This is a test question!
B) Congratulations!
That's a high score!
This is a test question!
C) That's a high score!
This is a test question!
D) Congratulations!
That's a high score!
E) None of these
Correct Answer:
Verified
Q3: This operator takes an operand and reverses
Q9: If you place a semicolon after the
Q12: This operator is used in C++ to
Q13: This is a variable, usually a boolean
Q15: x <= (y * 2)
A) 3, 4,
Q15: Input values should always be checked for:
A)Appropriate
Q32: When an if statement is placed within
Q32: This operator performs a logical NOT operation.
A)--
B)!
C)<>
D)><
E)None
Q37: The default section of a switch statement
Q50: Without this statement appearing in a switch
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