Multiple Choice
Case 1 - MTN Outdoor
You have just started working for MTN Outdoor as a programmer. Your first assignment is to review and correct various code to use sub procedures and/or functions.
-An application needs to calculate sales tax for purchases.You decide to simplify the code by putting the sales tax calculation in a function.The returned value from the function is then added to the Subtotal,and the result is stored in the decTotal variable.Which of the following statements will call the GetSalesTax function and return a value to be used in the Total calculation?
A) decTotal = decSubtotal + GetSalesTax()
B) decSubtotal + GetSalesTax(decSubtotal)
C) decTotal = decSubtotal + GetSalesTax(decSubtotal)
D) decTotal = decSubtotal + GetSalesTax(decSubtotal As Decimal)
Correct Answer:

Verified
Correct Answer:
Verified
Q48: How do the parameterList of a procedure
Q49: A(n)_ is processed only when it is
Q50: The number of arguments listed in the
Q51: Write the code to add Freshman,Sophomore,Junior,and Senior
Q52: _ styles of combo boxes are available
Q54: The following sample of code contains errors.
Q55: An application uses a message box to
Q56: Write the code for a Sub procedure
Q57: The _ keyword in a function header
Q58: Write the code for a Sub procedure