Multiple Choice
What will the following program segment display? int funny = 7, serious = 15;
funny = serious % 2;
if (funny != 1)
{
funny = 0;
serious = 0;
}
else if (funny == 2)
{
funny = 10;
serious = 10;
}
else
{
funny = 1;
serious = 1;
}
Cout << funny << " " << serious << endl;
A) 7 15
B) 0 0
C) 10 10
D) 1 1
E) None of these
Correct Answer:

Verified
Correct Answer:
Verified
Q2: In C++ the = operator indicates:<br>A)equality<br>B)assignment<br>C)subtraction<br>D)negation<br>E)None of
Q5: The following code correctly determines whether x
Q10: This operator is used in C++ to
Q21: What is the value of donuts
Q24: What is the output of the following
Q28: The _ of a variable is limited
Q30: Which line in the following program
Q45: If the sub-expression on the left side
Q51: This operator takes an operand and reverses
Q52: Both of the following if statements perform