Multiple Choice
What will the following segment of code output? You can assume the user enters a grade of 90 from the keyboard.
cout << "Enter a test score: ";
cin >> test_score;
if (test_score < 60) ;
cout << "You failed the test!" << endl;
if (test_score > 60)
cout << "You passed the test!" << endl;
else
cout << "You need to study for the next test!";
A) You failed the test!
B) You passed the test!
C) You failed the test!
You passed the test!
D) You failed the test!
You did poorly on the test!
E) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Q3: What will be the output of
Q3: This operator is known as the logical
Q6: What will the following segment of
Q7: What will following segment of code
Q11: Which value can be entered to
Q29: The default section is required in a
Q31: As a rule of style, when writing
Q39: What is assigned to the variable a
Q42: When a program lets the user know
Q44: An expression that has any value other