Chapter 7
The Private keyword is required in a Function procedure declaration.
False
The Selectedltem property of a ComboBox returns an integer indicating which choice is currently selected.
False
The keywords End SubProcedure signifies the end of a Sub procedure.
False
The statement End Procedure is used to signify the end of a Function declaration.
False
When the Selectedlndex property of a ComboBox has the value of 0, it indicates that no selection was made by the user.
False
You can pass at most two arguments to a Sub procedure.
False
You cannot exclude the receiving variable in the procedure call.
False
You should select the ByVal option if you intend to change the original value when it is passed to the Sub procedure.
False
Only six different types of exceptions can occur in a Visual Basic program.
False
A Finally statement is required after each Catch block in a Try-Catch structure to execute any necessary cleanup code.
False
A Function procedure can pass many values back to the calling procedure.
False
A dollar sign ($) as the first character in a variable means it is a class variable that can be referenced in any procedure within the class.
False
If the code in the Try section of a Try-Catch structure generates an error, the program will not be terminated when the exception occurs.
False
A DivideByZeroException occurs when a value is divided by zero.
True
A Function procedure returns a single value to the calling procedure.
True
A Sub procedure does not return any data to the calling procedure.
True
After a Sub procedure has completed its execution, program control returns to the calling procedure and program execution resumes in the calling procedure.
True
If a Sub procedure has more than one argument, the variables are passed in the same order in which they appear in the procedure call statement.
True
If an exception occurs in the Try section of a Try- Catch structure and there is no matching Catch block, the program will stop.
True
If the Private keyword is omitted, the default option is Public.
True
In a Function procedure declaration, any lines of code after a Return statement will not be executed.
True
Sub procedures are automatically executed when events such as the user clicking a button occur.
True
When you pass a variable as an argument that was declared with the ByVal keyword in a procedure, that procedure cannot change the original value of the variable.
True
You must specify a return data type in the procedure declaration to define the type of variable that is being returned to the calling procedure by the Function procedure.
True
You specify you want to pass a value by reference by entering the keyword ByRef in the Sub procedure declaration.
True