Multiple Choice
What is the value of ans, x, and y after the following statements are executed?
int ans = 0, x = 15, y = 25;
If ( x >= y)
{
Ans = x + 10;
X -=y;
}
Else
{
Ans = y + 10;
Y += x;
}
A) ans = 0, x = 15, y = 25
B) ans = 25, x = -10, y = 25
C) ans = 35, x = 15, y = 40
D) ans = 25, x = 15, y = 40
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q24: What will be the value of discountRate
Q25: _ operators are used to determine whether
Q26: What will be the value of discountRate
Q27: Programs never need more than one path
Q28: A block of code is enclosed in
Q31: The switch statement is a<br>A) multiple alternative
Q32: Which of the following will format
Q33: In a switch statement, if two different
Q34: In a switch statement, each of the
Q44: Which of the following expressions will determine