Multiple Choice
What is the value of donuts after the following statement executes?
int donuts = 10;
if (donuts != 10)
donuts = 0;
else
donuts += 2;
A) 12
B) 10
C) 0
D) 1
E) None of these
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q41: The default section of a switch statement
Q42: When a program lets the user know
Q43: What is the output of the following
Q44: An expression that has any value other
Q45: What is the output of the following
Q46: The _ is an equality (or comparison)
Q47: When a relational expression is False, it
Q48: If the expression on the left side
Q49: What is assigned to the variable result
Q51: Given that x = 2, y =