Multiple Choice
What will the following segment of code output if 11 is entered at the keyboard?
int number;
cin >> number;
if (number > 0)
cout << "C++";
else
cout << "Soccer";
cout << " is ";
cout << "fun" << endl;
A) C++ is fun
B) Soccer is fun
C) C++
D) C++fun
E) Soccerfun
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q3: What will be the output of
Q3: This operator is known as the logical
Q7: What will following segment of code
Q8: What will the following segment of
Q9: These operators connect two or more relational
Q11: Which value can be entered to
Q17: Input values should always be checked for:<br>A)Appropriate
Q29: The default section is required in a
Q31: As a rule of style, when writing
Q42: When a program lets the user know