Multiple Choice
What would be the value of discountRate after the following statements are executed?
Double discountRate;
Char custType = 'B';
Switch (custType)
{
Case 'A':
DiscountRate = .08;
Break;
Case 'B':
DiscountRate = .06;
Case 'C':
DiscountRate = .04;
Default:
DiscountRate = 0.0;
}
A) .08
B) .06
C) .04
D) 0.0
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: The System.out.printf method formats a string and
Q14: What would be the value of discountRate
Q15: What would be the value of bonus
Q16: A block of code is enclosed in
Q17: What will be the values of ans,
Q18: Which of the following is the correct
Q21: In an if/else statement, if the boolean
Q22: What will be printed when the following
Q23: What does the following code display?<br>Double x
Q24: What would be the value of x