What is the value of ans after the following code has been executed?
Int x = 35;
Int y = 20, ans = 80;
If (x < y) ;
Ans += y;
A) 80
B) 100
C) 35
D) 55
Correct Answer:
Verified
Q27: _ works like this: If the expression
Q28: To do a case insensitive compare which
Q29: In an if/else statement, if the boolean
Q30: The expression tested by an if statement
Q31: What would be the value of discountRate
Q33: If str1 and str2 are both Strings,
Q34: This is a boolean variable that signals
Q35: What would be the value of x
Q36: These operators use two operands:
A) Unary
B) Binary
C)
Q37: What would be the value of discountRate
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