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 block of code that will execute in response to a “call” from inside another block of code.
B
the breaking up of a program
C
pass the value to the sub procedure
D
a backcolor
2) What is an advantage of modularization?
A
can not be broken into smaller pieces
B
More flexible
C
is not easy to understand
D
not flexible at all
3) What is a code that will respond to an event that executes in response to the user?
A
Try Catch
B
Event procedure
C
modularization
D
Sub Procedure
4) Sub procedure is..
A
Dim intAges() As Integer = 14, 16, 17, 15, 18
B
a block of code that will execute in response to a “call” from inside another block of code.
C
Watch Window
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
End Sub
D
Close and Log Off
7) Public Sub
A
access through Adobe Illustrator
B
accessed only from within the same module
C
accessed from any module within the project
D
accessed from the K building only
8) What is accessed only from within the same module?
A
ENIAC
B
CAD
C
Sub
D
Private Sub
9) How do you call a sub?
A
Call SubName(arguments) / SubName(arguments)
B
TeachName / SubName
C
Call
D
Dim
10) What is the relationship between the parameters in a Sub and the arguments in the call?
A
The Number, Data Type and Order of the arguments MUST match the number, data type and order of the parameters
B
The Number 2
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
Radio button
B
Value Parameter
C
HTML
D
Reference Parameter
12) What is ByRef?
A
ByVal sends the value.
B
modularization
C
ByRef sends the location or address of the storage location
D
Preserve
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
3
C
2
D
12
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
75
D
web servers
15) What is option strict?
A
assigning a data type to ALL variables including those in procedure calls
B
Watch Window
C
To enforce strong typing by default (the IDE will require all variables to have data types ex - dbllared) turned on
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-2023
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?