Multiple Choice
What will be the value of bonus after the following code is executed?
Int bonus, sales = 10000;
If (sales < 5000)
Bonus = 200;
Else if (sales < 7500)
Bonus = 500;
Else if (sales < 10000)
Bonus = 750;
Else if (sales < 20000)
Bonus = 1000;
Else
Bonus = 1250;
A) 200
B) 500
C) 750
D) 1000
E) 1250
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: In most editors, you are indenting by
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
Q8: What will be the value of ans
Q10: What is the value of ans after
Q13: When testing for character values, the switch
Q16: Which of the following will format 12.78
Q18: A local variable's scope always ends at