Multiple Choice
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
Correct Answer:
Verified
Q8: What are the three main reasons programmers
Q11: A Function procedure does not return a
Q20: Case 1 - MTN Outdoor<br>You have just
Q33: In most cases,the last statement within a
Q41: What is the difference between a Sub
Q46: A _ is similar to a list
Q52: _ styles of combo boxes are available
Q53: Case 1 - MTN Outdoor<br>You have just
Q57: The _ keyword in a function header
Q59: The syntax _ assigns a return value