Deck 16: I Hear You Are Breaking up Sub Procedures
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
Play
Full screen (f)
Deck 16: I Hear You Are Breaking up Sub Procedures
1
When only a copy of the contents of a variable are passed, the receiving procedure can change the value stored inside the variable.
False
2
Every variable declared in an application has both a value and a unique address that represents the location of the variable in the computer's internal memory.
True
3
In a sub procedure, a set of parentheses that contains an optional procedure name follows the parameter list in the procedure header.
False
4
You pass a variable by ____ when the receiving procedure needs to know the variable's contents, but the receiving procedure does not need to change the contents.
A) reference
C) value
B) address
D) location
A) reference
C) value
B) address
D) location
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
The ____ provides a code template for every event procedure.
A) Code Editor
C) Code Template
B) Template Editor
D) Template Tool
A) Code Editor
C) Code Template
B) Template Editor
D) Template Tool
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
An event procedure is a set of Visual Basic instructions that are processed when a specific event (such as the Click event) occurs.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
An independent sub procedure can contain one or more parameters in its procedure header.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
Unlike the procedure header, which varies with each procedure, the procedure footer for an independent Sub procedure is always ____.
A) End
C) Sub Foot
B) End Sub
D) Foot Sub
A) End
C) Sub Foot
B) End Sub
D) Foot Sub
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
The parameters in a procedure header have ____ scope, which means they can be used only by the procedure in which they are declared.
A) local
C) procedure
B) limited
D) specific
A) local
C) procedure
B) limited
D) specific
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
____ store the information passed to a procedure when it is invoked.
A) Data stores
C) Variables
B) Controls
D) Parameters
A) Data stores
C) Variables
B) Controls
D) Parameters
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
When only the contents of a variable are passed, the receiving procedure is given access to the variable in memory.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
When processing the procedure header, the computer creates the variables listed in the parameter list.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
In a sub procedure, the number of arguments in the Call statement do not have to agree with the number of parameters in the procedure list.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
Unless you specify otherwise, variables in Visual Basic are automatically passed by ____.
A) reference
C) address
B) location
D) value
A) reference
C) address
B) location
D) value
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
Each parameter stores information that is passed to an independent Sub procedure by the ____ statement.
A) Call
C) Send
B) Pass
D) Go
A) Call
C) Send
B) Pass
D) Go
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
Passing a variable's address is referred to as passing by ____.
A) address
C) reference
B) value
D) location
A) address
C) reference
B) value
D) location
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
A procedure-level variable is removed from the computer's memory when the procedure in which it is declared ends.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
You can invoke a sub procedure using the Invoke statement.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
When you pass a variable's address to a procedure, the computer uses the address to locate the variable in its external memory.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
To pass a variable by reference in Visual Basic, you include the keyword ByRef before the variable's corresponding parameter in the receiving procedure's parameterList.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
When you pass a variable by ____, the computer passes a copy of the variable's contents to the receiving procedure.
A) value
C) location
B) contents
D) reference
A) value
C) location
B) contents
D) reference
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
The ____ keyword tells the computer to pass the variable's address rather than a copy of its contents.
A) ByRef
C) ByValue
B) ByVal
D) ByLoc
A) ByRef
C) ByValue
B) ByVal
D) ByLoc
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
To pass a variable by value in Visual Basic, you include the keyword ____ before the name of its corresponding parameter in the receiving procedure's parameterList.
A) Val
C) Value
B) ByVal
D) ByValue
A) Val
C) Value
B) ByVal
D) ByValue
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
When you pass a variable by reference, you pass its ____ in the computer's internal memory.
A) value
C) name
B) data
D) location
A) value
C) name
B) data
D) location
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
You pass a variable by ____ when you want the receiving procedure to change the contents of the variable.
A) content
C) value
B) name
D) reference
A) content
C) value
B) name
D) reference
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck