Solved

What Is the Output of the Following Code Segment If

Question 21

Multiple Choice

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:

verifed

Verified

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

Related Questions