Solved

What Is the Output of the Following Code Segment If

Question 16

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

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