Exam 7: Using Procedures and Exception Handling
Exam 1: Introduction to Visual Basic 2012 Programming112 Questions
Exam 2: Program and Graphical User Interface Design112 Questions
Exam 3: Program Design and Coding112 Questions
Exam 4: Variables and Arithmetic Operations112 Questions
Exam 5: Decision Structures112 Questions
Exam 6: Loop Structures112 Questions
Exam 7: Using Procedures and Exception Handling112 Questions
Exam 8: Using Arrays and File Handling112 Questions
Exam 9: Creating Web Applications112 Questions
Exam 10: Incorporating Databases with ADO.NET112 Questions
Exam 11: Multiple Classes and Inheritance112 Questions
Exam 12: Windows Store Apps112 Questions
Select questions type
A(n)____________________ procedure is a procedure that performs a task but does not return any data.
(Short Answer)
4.8/5
(40)
A(n)____________________ procedure is used when data needs to be returned to the calling procedure.
(Short Answer)
4.8/5
(38)
The keyword ____ is used in a Function procedure to return a single value.
(Multiple Choice)
4.9/5
(38)
The statement End Procedure is used to signify the end of a Function declaration.
(True/False)
4.8/5
(42)
A ____ procedure completes its task but does not return any data to the calling procedure.
(Multiple Choice)
4.8/5
(40)
CASE
Critical Thinking Questions
Case 7-1
Of all of the concepts Sheila has learned so far, she is having the hardest time understanding the use of procedures, including when and how to use them. She asks her instructor for some additional clarification.
-Sheila is having trouble even deciding whether or not to place a set of programming steps in a Sub procedure or a Function procedure,so her instructor tells her to ask herself a series of questions to make that decision.Which one of the following is NOT a question that the instructor suggests that she ask herself?
(Multiple Choice)
4.8/5
(40)
A Function procedure can pass many values back to the calling procedure.
(True/False)
4.7/5
(42)
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
-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
(Multiple Choice)
4.9/5
(37)
____ is an exception type that can be handled by a Try-Catch block.
(Multiple Choice)
4.9/5
(35)
You should select the ByVal option if you intend to change the original value when it is passed to the Sub procedure.
(True/False)
4.9/5
(42)
Critical Thinking Questions
Case 7-2
Your colleague hasn't 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.Before suggesting that he begin to use his reference texts or a search engine on the Web to find his own answers,you instead suggest which of the following to him?
(Multiple Choice)
4.8/5
(32)
CASE
Critical Thinking Questions
Case 7-1
Of all of the concepts Sheila has learned so far, she is having the hardest time understanding the use of procedures, including when and how to use them. She asks her instructor for some additional clarification.
-Which of the following is not a true statement her instructor makes to Sheila?
(Multiple Choice)
4.9/5
(36)
A ____ procedure can pass only one value back to the calling procedure.
(Multiple Choice)
4.8/5
(42)
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)
5.0/5
(40)
To pause a splash screen for a specific time period,you can call the ____ procedure.
(Multiple Choice)
4.8/5
(38)
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
(35)
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)
4.8/5
(40)
The SelectedItem property of a ComboBox returns an integer indicating which choice is currently selected.
(True/False)
4.9/5
(43)
Showing 81 - 100 of 112
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)