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
Q6: In Java, when a character is stored
Q8: What does the following code display? <br>double
Q20: What would be the value of discountRate
Q24: The expression tested by an if statement
Q27: What will be printed when the following
Q28: Because the && operator performs short-circuit evaluation,your
Q38: What is the value of x after
Q42: Unicode is an international encoding system that
Q50: What would be the value of bonus
Q64: An important style rule you should follow