Top Posters
Since Sunday
5
a
5
k
5
c
5
B
5
l
5
C
4
s
4
a
4
t
4
i
4
r
4
New Topic  
Heff Heff
wrote...
Posts: 1330
Rep: 3 0
6 years ago
What will the following segment of code output? 
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!
You did poorly on the test!

B) You failed the test!
You passed the test!

C) You passed the test!

D) You failed the test!

E) None of the above
Textbook 
Database Concepts

Database Concepts


Edition: 7th
Authors:
Read 42 times
1 Reply
Replies
Answer verified by a subject expert
bestavinashbestavinash
wrote...
Top Poster
Posts: 675
Rep: 7 0
6 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

Heff Author
wrote...

6 years ago
Brilliant
Mcb
wrote...

Yesterday
This site is awesome
wrote...

2 hours ago
This helped my grade so much Perfect
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1271 People Browsing
Related Images
  
 157
  
 840
  
 266
Your Opinion
Who will win the 2024 president election?
Votes: 3
Closes: November 4