Multiple Choice
What will be the value of discountRate after the following statements are executed?
double discountRate;
Char custType = 'B';
Switch (custType)
{
Case 'A':
DiscountRate = 0.08;
Break;
Case 'B':
DiscountRate = 0.06;
Case 'C':
DiscountRate = 0.04;
Default:
DiscountRate = 0.0;
}
A) 0.08
B) 0.06
C) 0.04
D) 0.0
Correct Answer:

Verified
Correct Answer:
Verified
Q5: A _ is a boolean variable that
Q6: Which of the following is the correct
Q8: What does the following code display? <br>double
Q9: Which of the following is the correct
Q11: The _ statement is used to create
Q12: What would be the value of bonus
Q13: When testing for character values, the switch
Q13: When testing for character values, the switch
Q14: What does the following code display? <br>int
Q15: Unicode is an international encoding system that