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 allows a user to scan a bar code of an item to determine the item price.A message that contains the item name and the item price should display.You need to create a Sub procedure to display the message.Which of the following procedure headers should be used?
A) Private Sub DisplayMessage(ByVal strItem As String, ByVal decPrice As Decimal)
B) Private Function DisplayMessage(ByVal strItem As String, ByVal decPrice As Decimal)
C) Private Sub DisplayMessage(ByRef strItem As String, ByRef decPrice As Decimal)
D) Private Sub DisplayMessage(ByVal strItem As String, ByRef decPrice As Decimal)
Correct Answer:
Verified
Q50: Case 1 - MTN Outdoor
You have just
Q51: How do the parameterList of a procedure
Q52: What is the difference between a Sub
Q53: Explain the difference between passing data by
Q54: Write the code for a Sub procedure
Q55: An application uses a message box to
Q56: Write the code for a function named
Q58: Case 1 - MTN Outdoor
You have just
Q59: Write the code for a function named
Q60: Write the code for a Sub procedure
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