Multiple Choice
Select all that apply. Assume you are writing a program that calculates a user's total order cost that includes sales tax of 6.5%.
Which of the following are advantages of using a named constant to represent the sales tax instead of simply entering 0.065 each time the tax is required in the code?
A) It will be easier for another programmer who may need to use this code to understand the purpose of the number wherever it is used in the code.
B) If the tax amount changes to 7.0%, the value will only have to be changed in one place.
C) It allows the end-user to always see the value of the sales tax.
D) It avoids the risk that any change to the value of sales tax will be made incorrectly or that an instance of the tax value might be missed as might occur if the number had to be changed in multiple locations.
Correct Answer:

Verified
Correct Answer:
Verified
Q7: Select all that apply. Which of the
Q8: In a print statement,you can set the
Q9: What is the output of the following
Q10: The \t escape character causes the output
Q11: After the execution of the following statement,the
Q13: A(n)_ is a single task that the
Q14: Comments in Python begin with the #
Q15: In the expression 12.45 + 3.6,the values
Q16: A(n)_ is a diagram that graphically depicts
Q17: A flowchart is a tool used by