Multiple Choice
What would be the value of bonus after the following statements are executed?
Int bonus, sales = 85000;
Char dept = 'S';
If (sales > 100000)
If (dept == 'R')
Bonus = 2000;
Else
Bonus = 1500;
Else if (sales > 75000)
If (dept == 'R')
Bonus = 1250;
Else
Bonus = 1000;
Else
Bonus = 0;
A) 2000
B) 1500
C) 1250
D) 1000
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: The System.out.printf method formats a string and
Q10: What is the value of ans after
Q12: If str1 and str2 are both Strings,
Q13: What will be the values of ans,
Q14: What would be the value of discountRate
Q16: Which of the following will format 12.78
Q16: A block of code is enclosed in
Q17: What will be the values of ans,
Q18: Which of the following is the correct
Q19: What would be the value of discountRate