Multiple Choice
What would be the value of discountRate after the following statements are executed?
Double discountRate = 0.0;
Int purchase = 100;
If (purchase > 1000)
DiscountRate = 0.05;
Else if (purchase > 750)
DiscountRate = 0.03;
Else if (purchase > 500)
DiscountRate = 0.01;
A) 0.0
B) 0.05
C) 0.03
D) 0.01
Correct Answer:

Verified
Correct Answer:
Verified
Q3: Enclosing a group of statements inside a
Q6: When two strings are compared using the
Q7: In an if-else statement, if the boolean
Q10: What would be the value of discountRate
Q11: What would be the value of x
Q13: What will be displayed after the following
Q15: Unicode is an international encoding system that
Q22: The boolean expression in an if statement
Q25: _ operators are used to determine whether
Q40: Java requires that the boolean expression being