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
pass the value to the sub procedure
B
the breaking up of a program
C
a block of code that will execute in response to a “call” from inside another block of code.
D
a backcolor
2) What is an advantage of modularization?
A
is not easy to understand
B
not flexible at all
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
Try Catch
B
Sub Procedure
C
modularization
D
Event procedure
4) Sub procedure is..
A
a block of code that will execute in response to a “call” from inside another block of code.
B
Dim intAges() As Integer = 14, 16, 17, 15, 18
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
Close and Log Off
B
End
C
End Function
D
End Sub
7) Public Sub
A
access through Adobe Illustrator
B
accessed from the K building only
C
accessed from any module within the project
D
accessed only from within the same module
8) What is accessed only from within the same module?
A
CAD
B
Private Sub
C
ENIAC
D
Sub
9) How do you call a sub?
A
TeachName / SubName
B
Call SubName(arguments) / SubName(arguments)
C
Dim
D
Call
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
Dim intAges() As Integer = 14, 16, 17, 15, 18
C
The Number 2
D
VIsual Studio. computer and textbook
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
Preserve
B
ByVal sends the value.
C
ByRef sends the location or address of the storage location
D
modularization
13) How many arguments are required in a call procedure where the procedure declaration has two value arguments and one reference parameter?
A
3
B
2
C
12
D
0
14) What is strong typing?
A
breaking up of a program
B
75
C
This is assigning a data type to ALL variables including those in procedure calls.
D
web servers
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
assigning a data type to ALL variables including those in procedure calls
C
a keyword
D
Watch Window
*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?