Case-Based Critical Thinking Questions 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 calculates an ending inventory amount based on a beginning inventory amount, sales, and returns. You need to create a function to calculate the ending inventory using three passed Integer variables: intBegin, intSales, and intReturns. Which of the following procedure headers should be used?
A) Private Function GetEndInventory(ByVal intBegin, ByVal intSales, ByVal intReturns) As Integer
B) Private Function GetEndInventory(ByVal intBegin As Integer, ByVal intSales As Integer, ByVal intReturns As Integer)
C) Private Function GetEndInventory(ByVal intBegin As Integer, ByVal intSales As Integer, ByVal intReturns As Integer, ByRef intEnd As Integer) As Integer
D) Private Function GetEndInventory(ByVal intBegin As Integer, ByVal intSales As Integer, ByVal intReturns As Integer) As Integer
Correct Answer:
Verified
Q25: _ styles of combo boxes are available
Q27: Which of the following is a valid
Q34: In a _ combo box,the text portion
Q35: If the digits argument is omitted,the Math.Round
Q39: The syntax _ assigns a return value
Q48: What are the three main reasons programmers
Q49: What is the Math.Round function? Provide the
Q52: What is the difference between a Sub
Q54: Write the code for a Sub procedure
Q55: An application uses a message box to
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents