7.01 Sub Procedures/Methods And User Defined Functions Question Preview (ID: 46622)


Enjoy Learning About Sub Procedures/Methods And User Defined Functions. TEACHERS: click here for quick copy question ID numbers.

Modularization is
a) the breaking up of a program
b) a block of code that will execute in response to a “call” from inside another block of code.
c) pass the value to the sub procedure
d) a backcolor

What is an advantage of modularization?
a) More flexible
b) not flexible at all
c) can not be broken into smaller pieces
d) is not easy to understand

What is a code that will respond to an event that executes in response to the user?
a) modularization
b) Try Catch
c) Sub Procedure
d) Event procedure

Sub procedure is..
a) Value Parameters
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) Watch Window

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 ?

What always ends a sub?
a) End
b) End Sub
c) End Function
d) Close and Log Off

Public Sub
a) accessed from any module within the project
b) accessed from the K building only
c) accessed only from within the same module
d) access through Adobe Illustrator

What is accessed only from within the same module?
a) Private Sub
b) Sub
c) CAD
d) ENIAC

How do you call a sub?
a) Dim
b) TeachName / SubName
c) Call SubName(arguments) / SubName(arguments)
d) Call

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) Dim intAges() As Integer = 14, 16, 17, 15, 18
d) VIsual Studio. computer and textbook

What is passing ByRef passes a reference to the variable itself?
a) HTML
b) Value Parameter
c) Radio button
d) Reference Parameter

What is ByRef?
a) Preserve
b) modularization
c) ByRef sends the location or address of the storage location
d) ByVal sends the value.

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) 2
d) 3

What is strong typing?
a) breaking up of a program
b) web servers
c) This is assigning a data type to ALL variables including those in procedure calls.
d) 75

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

Play Games with the Questions above at ReviewGameZone.com
To play games using the questions from above, visit ReviewGameZone.com and enter game ID number: 46622 in the upper right hand corner or click here.

TEACHERS / EDUCATORS
Log In
| Sign Up / Register