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
Q45: What will be displayed after the following
Q46: What will be the value of ans
Q47: A flag may have the values<br>A) defined
Q48: If the expression on the left side
Q49: Which of the following is the not
Q51: When two strings are compared using the
Q52: An expression tested by an if statement
Q53: What will be the values of ans,
Q54: What will be the value of bonus
Q55: What will be the value of x