Exam 7: Sub and Function Procedures

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

The number of arguments listed in the Call statement's argumentList should agree with the number of parameters listed in the parameterList in the procedure header.

(True/False)
4.9/5
(34)

Usually,the statement that invokes a function will assign the function's return value to a(n)____.

(Multiple Choice)
4.9/5
(34)

Which of the following is a valid Return statement?

(Multiple Choice)
4.8/5
(31)

You pass a variable ____ when the receiving procedure needs to know the variable's contents,but the receiving procedure does not need to change the contents.

(Multiple Choice)
4.8/5
(39)

An independent Sub procedure can contain one or more ____ in its procedure header that have procedure scope and store an item of data.

(Multiple Choice)
4.9/5
(42)

The computer automatically processes an event procedure when the event occurs.

(True/False)
4.7/5
(37)

The syntax ____ displays a return value. The syntax ____ displays a return value.

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

Write the code for a function named CalculateBonus.The function receives two decimal variables representing the salary and bonus rate.The function should calculate the bonus amount by multiplying the salary by the bonus rate,and then return the result.Then write the appropriate statement to invoke the function,passing it the decSalary and decRate variables.Assign the function's return value to the decBonus variable.

(Essay)
4.8/5
(35)

An event procedure is a Function procedure that is associated with a specific object and event.

(True/False)
4.8/5
(29)

When using ____,you capitalize the first letter in the procedure name and the first letter of each subsequent word in the name.

(Multiple Choice)
4.9/5
(47)

Write the code for a Sub procedure named DisplayAuto,which displays a message containing the two values passed to it: an automobile make and model.Use strMake and strModel as the parameters.Display the "You own a make model." message in a message box.Then write the statement to invoke the procedure,passing it the contents of the strBrand and strType variables,respectively.

(Essay)
4.9/5
(36)

When you pass a variable ____,the computer passes only the contents of the variable to the receiving procedure.

(Multiple Choice)
4.9/5
(32)

To sort the items in the list portion of a combo box,you use the combo box's ____ property.

(Multiple Choice)
4.8/5
(38)

What is the Math.Round function? Provide the function's syntax and define the arguments.

(Essay)
4.7/5
(29)

Like a Sub procedure header,a Function procedure header includes the As dataType section.

(True/False)
4.8/5
(25)

A form's ____ procedure is responsible for verifying that the user wants to close the application,and then taking the appropriate action based on the user's response.

(Multiple Choice)
4.9/5
(35)

If the digits argument is omitted,the Math.Round function returns a(n)____.

(Multiple Choice)
4.9/5
(41)

It is a common practice to begin a procedure's name with a(n)____.

(Multiple Choice)
4.9/5
(40)

Like the first item in a list box,the first item in a combo box has an index of ____.

(Multiple Choice)
4.7/5
(29)

Write the code for a Sub procedure named CalculateAverage that receives four decimal variables (the first three by value and the last one by reference).The procedure should use the first three variables to calculate the average and then store the result in the fourth variable.

(Essay)
4.9/5
(35)
Showing 21 - 40 of 56
close modal

Filters

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