Multiple Choice
What will be the values 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
Q6: What would be the value of discountRate
Q10: What will be the values of ans,x,and
Q12: What would be the value of bonus
Q13: When testing for character values, the switch
Q13: What will be the value of bonus
Q14: What will be printed when the following
Q15: What will be the value of ans
Q16: A block of code is enclosed in
Q20: What will be the value of pay
Q39: If chr is a character variable, which