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
Q2: If str1 and str2 are both String
Q5: A _ is a boolean variable that
Q19: All it takes for an OR expression
Q20: A block of code is enclosed in
Q22: What will be displayed after the following
Q23: What will be displayed when the following
Q24: What will be displayed when the following
Q29: Which of the following strings could be
Q42: Which of the following expressions could be
Q44: Which of the following expressions determines whether