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 = 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
Q6: When two strings are compared using the
Q7: In an if-else statement, if the boolean
Q8: What would be the value of discountRate
Q11: What would be the value of x
Q13: What will be displayed after the following
Q14: Which of the following statements determines whether
Q15: Unicode is an international encoding system that
Q15: A flag may have the values<br>A) defined
Q22: The boolean expression in an if statement
Q40: Java requires that the boolean expression being