Exam 7: Sub and Function Procedures

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

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

Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
Verified

B

A ____ is similar to a list box in that it allows the user to select from a list of choices.

Free
(Multiple Choice)
4.7/5
(31)
Correct Answer:
Verified

C

The default combo box style in Visual Basic is ____.

Free
(Multiple Choice)
4.9/5
(38)
Correct Answer:
Verified

C

The ____ keyword in a function header identifies the data type of the data being returned.

(Multiple Choice)
4.8/5
(39)

Which of the following statements would invoke the DisplayMessage Sub procedure? Which of the following statements would invoke the DisplayMessage Sub procedure?

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

How do the parameterList of a procedure header and the argumentList of a Call statement relate to each other?

(Essay)
4.7/5
(29)

Write the code for a Sub procedure named CalculateBonus.The procedure receives three decimal variables representing the salary,bonus rate,and bonus amount.The procedure should calculate the bonus amount by multiplying the salary by the bonus rate.Create your own variable names.

(Essay)
4.8/5
(43)

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

(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 is passed the number 9.75? Which of the following is a valid header for a procedure that is passed the number 9.75?

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

Write the code for a Sub procedure named InitializeVariables.The Sub procedure will assign the number 0 to the intTotalCars,intTotalTrucks,intTotalSUVs.Then write the code to call the procedure.

(Essay)
4.9/5
(38)

A combo box's ____ property contains the value that appears in the text portion of the control.

(Multiple Choice)
5.0/5
(38)

Write the code to add Freshman,Sophomore,Junior,and Senior to the Class combo box.Use the SelectedItem property to make Freshman the default item.

(Essay)
4.8/5
(41)

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

(True/False)
4.9/5
(39)

An application needs to calculate sales tax for purchases.You decide to simplify the code by putting the sales tax calculation in a function.The returned value from the function is then added to the Subtotal,and the result is stored in the decTotal variable.Which of the following statements will call the GetSalesTax function and return a value to be used in the Total calculation? An application needs to calculate sales tax for purchases.You decide to simplify the code by putting the sales tax calculation in a function.The returned value from the function is then added to the Subtotal,and the result is stored in the decTotal variable.Which of the following statements will call the GetSalesTax function and return a value to be used in the Total calculation?

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

The syntax of the Call statement is ____.

(Multiple Choice)
4.8/5
(29)

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

(Multiple Choice)
4.7/5
(35)

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

(True/False)
4.8/5
(36)

Which of the following statements would invoke the GetEndInventory function and assign the function's return value to the intEnd variable? Which of the following statements would invoke the GetEndInventory function and assign the function's return value to the intEnd variable?

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

For the access key to work correctly in a combo box,you must set the label's TabIndex property to a value that is ____ the combo box's TabIndex value.

(Multiple Choice)
4.7/5
(44)

A Function procedure does not return a value after performing its assigned task.

(True/False)
4.8/5
(29)
Showing 1 - 20 of 56
close modal

Filters

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