Exam 7: Sub and Function Procedures

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

____ styles of combo boxes are available in Visual Basic.

(Multiple Choice)
4.8/5
(30)

In most cases,the last statement within a function is the ____ expression.

(Multiple Choice)
4.8/5
(33)

A(n)____ is processed only when it is called (invoked)from code.

(Multiple Choice)
4.9/5
(29)

Write the code for a function named GetMajor.The function should prompt the user to enter a major field of study and then return the user's response.Then write a statement to invoke the GetMajor function,returning the result to the strCurrentMajor variable.

(Essay)
4.7/5
(32)

Visual Basic allows you to specify that an argument in the Call statement is optional.

(True/False)
4.8/5
(30)

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? 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?

(Not Answered)
This question doesn't have any answer yet
Ask our community

Which of the following is a valid header for a procedure that receives the address of a string variable and the address of an integer? Which of the following is a valid header for a procedure that receives the address of a string variable and the address of an integer?

(Not Answered)
This question doesn't have any answer yet
Ask our community

The names of the arguments in a Call statement need to be identical to the names of the corresponding parameters.

(True/False)
4.9/5
(33)

Explain the difference between passing data by value and passing data by reference.

(Essay)
4.9/5
(34)

The expression Math.Round(287.876,2)yields a value of ____.

(Multiple Choice)
4.8/5
(35)

What is the difference between a Sub procedure and a Function procedure?

(Essay)
4.7/5
(30)

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? 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?

(Not Answered)
This question doesn't have any answer yet
Ask our community

The syntax ____ assigns a return value to a variable. The syntax ____ assigns a return value to a variable.

(Not Answered)
This question doesn't have any answer yet
Ask our community

An application uses a message box to ask users whether they want to exit the application,and the return value is stored in the dlgButton variable.Write the statement needed to stop the computer from closing the form if the user selects the No button in the message box.

(Essay)
4.7/5
(37)

An independent Sub procedure is a procedure that is independent of any object and event.

(True/False)
4.8/5
(26)

When will the TextChanged event occur for a combo box? Which style allows the user to edit the text of the combo box?

(Essay)
4.8/5
(36)
Showing 41 - 56 of 56
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)