What is the output of the following code segment if the user enters 90 for the score?
Cout << "Enter your test score:
";
Cin >> test_score;
If (test_score < 60)
Cout << "You failed the test." << endl;
If (test_score > 60)
Cout << "You passed the test."
Else
Cout << "You need to study harder next time." << endl;
A) You failed the test.
B) You passed the test.
C) You need to study harder next time.
D) You failed the test.
You need to study harder next time.
E) You passed the test.
You need to study harder next time.
Correct Answer:
Verified
Q11: When a relational expression is False, it
Q12: An expression that has any value other
Q13: The _ is an equality (or comparison)
Q14: The default section is required in a
Q15: The conditional operator takes two operands.
Q17: If the expression on the left side
Q18: After the following code executes, what is
Q19: If you place a semicolon after the
Q20: What is the output of the following
Q21: What is the output of 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