Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
Expert Solution & Answer
Book Icon
Chapter 6, Problem 16RQ
Program Description Answer

The statement decDiscount = GetDiscount(decSales, decRate) is used to invoke the function by passing the decSales and dexRate decimal variables and assign the function’s return value into the decDiscount variable.

Hence, the correct answer is option “C”.

Blurred answer
Students have asked these similar questions
You are writing an application that uses the sqrt function. The program must reference the function using the name squareRoot.You need to import the function.Which code segment should you use? Group of answer choices   D. from math.sqrt as squareRoot A. import math.sqrt as squareRoot B. import sqrt from math as squareRoot C. from math import sqrt as squareRoot
Which of the following statements invokes the GetDiscount function, passing it the contents of two Decimal variables named decSales and decRate? The statement should assign the function’s return value to the decDiscount variable. a. decDiscount = GetDiscount(ByVal decSales, ByVal decRate) b. GetDiscount(decSales, decRate, decDiscount) c. decDiscount = GetDiscount(decSales, decRate) d. None of the above.
The following statements call a function named show_data. Which of the statements passes arguments by position, and which passes keyword arguments?a. show_data(name='Kathryn', age=25)b. show_data('Kathryn', 25)
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage