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
Q9: In Java, when a character is stored
Q10: The _ statement is used to make
Q11: Which of the following is the correct
Q12: A block of code is enclosed in
Q13: A flag may have the values:
A) 0
Q15: A Boolean expression is one that is
Q16: Which one of the following is the
Q18: What will be the values of ans,
Q19: What will be the value of bonus
Q46: Which of the following expressions will determine
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents