Multiple Choice
What will be the values of ans, x, and y after the following statements are executed?
int ans = 35, x = 50, y = 50;
If (x >= y)
{
Ans = x + 10;
X -= y;
}
Else
{
Ans = y + 10;
Y += x;
}
A) ans = 60, x = 0, y = 50
B) ans = 45, x = 50, y = 0
C) ans = 45, x = 50, y = 50
D) ans = 60, x = 50, y = 100
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q48: If the expression on the left side
Q49: Which of the following is the not
Q50: What would be the value of bonus
Q51: When two strings are compared using the
Q52: An expression tested by an if statement
Q54: What will be the value of bonus
Q55: What will be the value of x
Q56: All it takes for an AND expression
Q57: _ works like this: If the expression
Q58: What is the value of ans after