Multiple Choice
What would be the value of discountRate after the following statements are executed?
Double discountRate = 0.0;
Int purchase = 1250
Char cust = 'N';
If (purchase > 1000
If (cust == 'Y')
DiscountRate = 0.05;
Else
DiscountRate = 0.04;
Else if (purchase > 750)
If (cust == 'Y')
DiscountRate = 0.04;
Else
DiscountRate = 0.03;
Else
DiscountRate = 0.0;
A) 0.0
B) 0.04
C) 0.05
D) 0.03
Correct Answer:

Verified
Correct Answer:
Verified
Q2: If str1 and str2 are both String
Q11: The _ statement is used to create
Q13: When testing for character values, the switch
Q16: Which of the following strings could be
Q20: When a character is stored in memory,
Q33: In a switch statement, if two different
Q39: What will be displayed when the following
Q40: An important style rule you should adopt
Q43: The if-else statement will execute one group
Q44: Which of the following expressions will determine