Exam 7: Sub and Function Procedures
Exam 1: An Introduction to Visual Basic 201259 Questions
Exam 2: Designing Applications57 Questions
Exam 3: Using Variables and Constants58 Questions
Exam 4: The Selection Structure57 Questions
Exam 5: More on the Selection Structure56 Questions
Exam 6: The Repetition Structure59 Questions
Exam 7: Sub and Function Procedures56 Questions
Exam 8: String Manipulation57 Questions
Exam 9: Arrays57 Questions
Exam 10: Structures and Sequential Access Files58 Questions
Exam 11: Classes and Objects58 Questions
Exam 12: Web Applications55 Questions
Exam 13: Working With Access Databases and Linq57 Questions
Exam 14: Access Databases and SQL58 Questions
Select questions type
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? 

(Not Answered)
This question doesn't have any answer yet
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
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? 

(Not Answered)
This question doesn't have any answer yet
The syntax ____ assigns a return value to a variable. 

(Not Answered)
This question doesn't have any answer yet
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)