Review Game Zone
Flash Cards
(current)
Games
Teachers
Search
7.01 Sub Procedures/Methods And User Defined Functions
Test Description: Enjoy learning about Sub Procedures/Methods and User Defined Functions.
Instructions: Answer all questions to get your test result.
1) Modularization is
A
a backcolor
B
pass the value to the sub procedure
C
the breaking up of a program
D
a block of code that will execute in response to a “call” from inside another block of code.
2) What is an advantage of modularization?
A
not flexible at all
B
is not easy to understand
C
can not be broken into smaller pieces
D
More flexible
3) What is a code that will respond to an event that executes in response to the user?
A
Event procedure
B
Try Catch
C
Sub Procedure
D
modularization
4) Sub procedure is..
A
Watch Window
B
a block of code that will execute in response to a “call” from inside another block of code.
C
Dim intAges() As Integer = 14, 16, 17, 15, 18
D
Value Parameters
5) How do you declare a sub?
A
Private|Public Sub subName =
B
Private|Public Sub subName ()
C
Private|Public Sub subName /
D
Private|Public Sub subName ?
6) What always ends a sub?
A
End Function
B
End
C
Close and Log Off
D
End Sub
7) Public Sub
A
accessed from any module within the project
B
accessed only from within the same module
C
access through Adobe Illustrator
D
accessed from the K building only
8) What is accessed only from within the same module?
A
Private Sub
B
Sub
C
CAD
D
ENIAC
9) How do you call a sub?
A
Call SubName(arguments) / SubName(arguments)
B
TeachName / SubName
C
Dim
D
Call
10) What is the relationship between the parameters in a Sub and the arguments in the call?
A
The Number 2
B
The Number, Data Type and Order of the arguments MUST match the number, data type and order of the parameters
C
VIsual Studio. computer and textbook
D
Dim intAges() As Integer = 14, 16, 17, 15, 18
11) What is passing ByRef passes a reference to the variable itself?
A
Value Parameter
B
Radio button
C
HTML
D
Reference Parameter
12) What is ByRef?
A
ByRef sends the location or address of the storage location
B
modularization
C
Preserve
D
ByVal sends the value.
13) How many arguments are required in a call procedure where the procedure declaration has two value arguments and one reference parameter?
A
0
B
12
C
3
D
2
14) What is strong typing?
A
This is assigning a data type to ALL variables including those in procedure calls.
B
breaking up of a program
C
web servers
D
75
15) What is option strict?
A
To enforce strong typing by default (the IDE will require all variables to have data types ex - dbllared) turned on
B
Watch Window
C
assigning a data type to ALL variables including those in procedure calls
D
a keyword
*select an answer for all questions
Check Results & Get Answers
Play Games with the Questions Above
Teachers: Create FREE classroom games with your questions
Click for more info!
©2007-2024
ReviewGameZone.com
|
About
|
Privacy
|
Contact
|
Terms
|
Site Map
WAIT! Find what you needed?
×
Still Looking for the Answers?
Have Another Question?
Play a Review Game with These Questions?
Want to Make Your Own Test Like This One?