Deck 16: I Hear You Are Breaking up Sub Procedures

ملء الشاشة (f)
exit full mode
سؤال
When only a copy of the contents of a variable are passed, the receiving procedure can change the value stored inside the variable.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
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.
سؤال
In a sub procedure, a set of parentheses that contains an optional procedure name follows the parameter list in the procedure header.
سؤال
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
سؤال
The ____ provides a code template for every event procedure.

A) Code Editor
C) Code Template
B) Template Editor
D) Template Tool
سؤال
An event procedure is a set of Visual Basic instructions that are processed when a specific event (such as the Click event) occurs.
سؤال
An independent sub procedure can contain one or more parameters in its procedure header.
سؤال
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
سؤال
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
سؤال
____ store the information passed to a procedure when it is invoked.

A) Data stores
C) Variables
B) Controls
D) Parameters
سؤال
When only the contents of a variable are passed, the receiving procedure is given access to the variable in memory.
سؤال
When processing the procedure header, the computer creates the variables listed in the parameter list.
سؤال
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.
سؤال
Unless you specify otherwise, variables in Visual Basic are automatically passed by ____.

A) reference
C) address
B) location
D) value
سؤال
Each parameter stores information that is passed to an independent Sub procedure by the ____ statement.

A) Call
C) Send
B) Pass
D) Go
سؤال
Passing a variable's address is referred to as passing by ____.

A) address
C) reference
B) value
D) location
سؤال
A procedure-level variable is removed from the computer's memory when the procedure in which it is declared ends.
سؤال
You can invoke a sub procedure using the Invoke statement.
سؤال
When you pass a variable's address to a procedure, the computer uses the address to locate the variable in its external memory.
سؤال
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.
سؤال
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
سؤال
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
سؤال
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
سؤال
When you pass a variable by reference, you pass its ____ in the computer's internal memory.

A) value
C) name
B) data
D) location
سؤال
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
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
An independent sub procedure can contain one or more parameters in its procedure header.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
____ store the information passed to a procedure when it is invoked.

A) Data stores
C) Variables
B) Controls
D) Parameters
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
When only the contents of a variable are passed, the receiving procedure is given access to the variable in memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
When processing the procedure header, the computer creates the variables listed in the parameter list.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
Unless you specify otherwise, variables in Visual Basic are automatically passed by ____.

A) reference
C) address
B) location
D) value
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
Passing a variable's address is referred to as passing by ____.

A) address
C) reference
B) value
D) location
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
A procedure-level variable is removed from the computer's memory when the procedure in which it is declared ends.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
You can invoke a sub procedure using the Invoke statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.