Case-Based Critical Thinking QuestionsCase 1: MTN OutdoorYou 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.
Which of the following statements would invoke the DisplayMessage Sub procedure?

A. Call DisplayMessage()
B. Call DisplayMessage(strItemName, decItemPrice)
C. DisplayMessage(strItemName, decItemPrice)
D. Call DisplayMessage(strItemName, decItemPrice) As String


Answer: B

Computer Science & Information Technology

You might also like to view...

Which of the following is not true in regard to naming variables?

a. Names may contain underscores. b. Names may contain letters. c. Names may contain digits. d. Names may contain spaces.

Computer Science & Information Technology

Suppose you want to verify that the user has entered a value into a text box named txtInput. Which of the following code segments responds with an appropriate message if the user does not enter a value?

a.``` If txtInput.text <> "" Then lblStatus.Text = “No data has been entered” End If ``` b.``` If txtInput.Text = " " Then lblStatus.Text = “No data has been entered” End If ``` c.``` If txtInput <> String.Empty Then lblStatus.Text = “No data has been entered” End If ``` d.``` If txtInput.Text = String.Empty Then lblStatus.Text = “No data has been entered” End If ```

Computer Science & Information Technology

The body of a method that returns a value must contain at least one _________ statement.

a. void b. invocation c. thows d. return

Computer Science & Information Technology

You can ________ in the header or footer area of a document to open a header or footer

A) click B) double-click C) triple-click D) right-click

Computer Science & Information Technology