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
Q14: What will be the value of ans
Q15: A Boolean expression is one that is
Q16: Which one of the following is the
Q18: What will be the values of ans,
Q20: If you prematurely terminate an if statement
Q21: Enclosing a group of statements inside a
Q22: Which of the following correctly tests the
Q23: What will be the value of pay
Q46: Which of the following expressions will determine
Q54: Which of the following will format 12.78
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