Exam 7: Using Procedures and Exception Handling

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

In a Try-Catch structure, the ____________________ keyword indicates the start of code that could cause an exception to occur.

Free
(Short Answer)
4.8/5
(39)
Correct Answer:
Verified

Try

Identify the letter of the choice that best matches the phrase or definition
Visual Basic provides a generic one of these in order to use a splash screen with a project
template
Using this event handler of a ComboBox is more efficient for the user because the user does not need to click elsewhere to indicate that a choice has been made
ListBox
This provides a central location for managing project properties, settings, and resources
procedure call
Correct Answer:
Verified
Premises:
Responses:
Visual Basic provides a generic one of these in order to use a splash screen with a project
template
Using this event handler of a ComboBox is more efficient for the user because the user does not need to click elsewhere to indicate that a choice has been made
ListBox
This provides a central location for managing project properties, settings, and resources
procedure call
When a program is broken into manageable parts, each part is called this
SelectedIndexChanged
Must be explicitly called from within the program code
procedure
A Sub procedure may be used within this kind of statement
Sub procedure
If a Sub procedure is declared with this keyword, it can only be accessed by code within the class in which it was declared
SelectedIndex
Object that can trigger a SelectedIndexChanged event when a selection is made
Project Designer
When the user selects an item in the ComboBox object, this property of the ComboBox object is assigned a number that represents the selected item.
Private
Consists of the procedure name followed by a set of parentheses
Select Case
Free
(Matching)
4.8/5
(36)
Correct Answer:
Verified

The ____ exception type occurs when a variable with no value is passed to a procedure.

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

B

Sub procedures are automatically executed when events such as the user clicking a button occur.

(True/False)
4.9/5
(33)

When an argument is passed ____, it means the Sub procedure has access to the value of the passed argument, but does not actually reference the variable declared in the calling procedure.

(Multiple Choice)
4.9/5
(35)

Your colleague has not used Visual Basic in a while and so when he encounters a decision point, he sometimes calls out to you over the cubicle wall to get answers to his questions. After a few minutes, he calls back out. This time, he wants to know how to pass a reference to a value instead of passing the value itself. You suggest which of the following to him?

(Multiple Choice)
4.9/5
(36)

Tap or click the list arrow on the left side of a ComboBox object to view the contents. _________________________

(True/False)
4.8/5
(47)

A Sub procedure is called with a statement consisting of ____.

(Multiple Choice)
4.9/5
(39)

The ____________________ exception type occurs when a value exceeds the size limit of its assigned data type.

(Short Answer)
4.9/5
(35)

If the third item in a ComboBox list is selected by the user, the SelectedIndex property of the ComboBox will have the value ____.

(Multiple Choice)
4.9/5
(34)

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.

(True/False)
4.8/5
(30)

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.

(True/False)
4.8/5
(29)

A ComboBox object consists of three parts. _________________________

(True/False)
4.9/5
(47)

The Project Designer provides a central location for managing ____.

(Multiple Choice)
4.8/5
(33)

The ____ structure can be used to detect exceptions and take corrective action.

(Multiple Choice)
4.8/5
(32)

Your colleague has not used Visual Basic in a while and so when he encounters a decision point, he sometimes calls out to you over the cubicle wall to get answers to his questions. He wants help remembering which method of passing an argument will give the Sub procedure access to the value of the passed argument without actually referencing the variable declared in the calling procedure. Which of the following do you suggest to him?

(Multiple Choice)
4.7/5
(47)

A variable declared as Private at the ____ level can be accessed by procedures and events within the class but not by any code outside of the class.

(Multiple Choice)
4.8/5
(40)

The ____ prefix is used when naming a ComboBox object.

(Multiple Choice)
4.9/5
(43)

The ____________________ exception type occurs when a variable is converted to another type that is not possible.

(Short Answer)
4.8/5
(41)

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/False)
5.0/5
(33)
Showing 1 - 20 of 103
close modal

Filters

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