Multiple Choice
What will 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
Q21: If you prematurely terminate an if statement
Q22: The boolean expression in an if statement
Q23: In Java, when a character is stored
Q24: What will be the value of discountRate
Q25: _ operators are used to determine whether
Q27: Programs never need more than one path
Q28: A block of code is enclosed in
Q29: What is the value of ans, x,
Q31: The switch statement is a<br>A) multiple alternative
Q44: Which of the following expressions will determine