Multiple Choice
What will be the value of ans after the following code has been executed?
Int x = 90, y = 55, ans = 10;
If ( x == y) ;
Ans *= 2;
A) 10
B) 145
C) 20
D) No value, there is a syntax error.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q3: Which of the following correctly tests the
Q4: This type of operator determines whether a
Q5: What would be the value of discountRate
Q6: In Java, when a character is stored
Q10: What is the value of ans after
Q12: If str1 and str2 are both Strings,
Q13: When testing for character values, the switch
Q13: What will be the values of ans,
Q16: Which of the following will format 12.78
Q18: A local variable's scope always ends at