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

Verified
Correct Answer:
Verified
Related Questions
Q4: When a relational expression is false, it
Q18: What is the value of the following
Q25: Whereas < is called a relational operator,
Q39: Relational operators allow you to _ numbers.<br>A)
Q40: This operator represents the logical AND:<br>A) ++<br>B)
Q44: What is the output of the
Q46: The default section of a switch statement
Q49: What is the value of the following
Q51: What will be the value of
Q53: This is a variable, usually a boolean