Exam 7: Sub and Function Procedures

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

What is a combo box? List the three styles of combo boxes available in Visual Basic.

(Essay)
4.8/5
(32)

Which of the following statements will determine the number of items in the list portion of the Department combo box?

(Multiple Choice)
4.8/5
(28)

The syntax of the Call statement is ____.

(Multiple Choice)
4.9/5
(30)

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?

(Multiple Choice)
4.7/5
(30)

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
(36)

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

(Multiple Choice)
4.8/5
(34)

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

(Essay)
4.8/5
(38)

As you do with list boxes,you use the Items collection's ____ method to add an item to a combo box.

(Multiple Choice)
4.8/5
(35)

Math.Round(3.234,2)returns the number 3.24.

(True/False)
4.8/5
(29)

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

(Multiple Choice)
5.0/5
(26)

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.8/5
(25)

The syntax ____ displays a return value.

(Multiple Choice)
4.9/5
(32)

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

(Multiple Choice)
4.7/5
(28)

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

(True/False)
4.9/5
(42)

Which of the following is a valid Return statement?

(Multiple Choice)
4.9/5
(26)

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
(40)

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

(Essay)
5.0/5
(40)

In a ____ combo box,the text portion is not editable.

(Multiple Choice)
4.8/5
(24)

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

(Multiple Choice)
4.8/5
(34)

You can determine whether a variable is being passed by value or by reference by looking at the Call statement.

(True/False)
4.9/5
(33)
Showing 21 - 40 of 60
close modal

Filters

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