Deck 17: Talk to Me Function Procedures

ملء الشاشة (f)
exit full mode
سؤال
A(n) ____ procedure does not return a value.

A) Sub
C) Assignment
B) function
D) static
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
If the function returns a string, you enter ____ at the end of the header.

A) String As
C) As String
B) (String)
D) Type As StringType
سؤال
You use the ____ section of the function's header to specify the data type of the value returned by the function.

A) Like
C) Type
B) Dim
D) As dataType
سؤال
A(n) ____ procedure returns a value after performing its assigned task.

A) return
C) function
B) sub
D) assignment
سؤال
The header and footer in a function are identical to the header and footer in a sub procedure.
سؤال
Most programmers pass a variable by reference only when a procedure needs to produce more than one result.
سؤال
The function's header and footer contain the ____ keyword.

A) Sub
C) SubFunction
B) FunctionProcedure
D) Function
سؤال
Allowing more than one procedure to change the contents of a memory location can lead to subtle errors that are difficult to find, especially in large applications.
سؤال
A Sub procedure's header includes the As dataType section.
سؤال
If the function returns a Double number, you enter ____ at the end of the header.

A) Number Double
C) (Double)
B) As Double
D) Type as DoubleType(Double)
سؤال
The statement that invokes a function will always assign the function's return value to a variable.
سؤال
The sub procedure's header and footer contain the ____ keyword.

A) Sub
C) SubProcedure
B) Function
D) Subroutine
سؤال
In most cases, the last statement within a function is Update expression.
سؤال
When changing the Sub keyword in a header to Function, the Code Editor automatically changes the Sub keyword in the footer to the Function keyword.
سؤال
As is true with a Sub procedure, a function can receive information either by value or by reference.
سؤال
After creating a function, you can invoke it from one or more places in an application's code.
سؤال
A ____'s header includes the As dataType section.

A) procedure
C) caller
B) function
D) program
سؤال
You invoke a function that you create in exactly the same way as you invoke one of Visual Basic's built-in functions.
سؤال
Fewer unintentional errors occur in applications when memory locations have the maximum scope needed.
سؤال
Function procedures are referred to more simply as structures.
سؤال
The information a function receives is listed in the ____ in the header.

A) parameterList
C) return type
B) data type
D) function name
سؤال
Like sub procedure names, function names typically begin with a(n) ____.

A) noun
C) adjective
B) verb
D) adverb
سؤال
You know that a variable is passed by value when the keyword ____ appears before the parameter in the function's header.

A) ByRef
C) ByVal
B) ByValue
D) ByReference
سؤال
A ____ under a variable in the Code Editor window indicates that it has not been declared.

A) bold color
C) green color
B) jagged line
D) dashed line
سؤال
In a function, the data type of the expression in the Return statement must agree with the data type specified in the ____ section of the header.

A) Type As dataType
C) As dataType (Return)
B) Return As dataType
D) As dataType
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 17: Talk to Me Function Procedures
1
A(n) ____ procedure does not return a value.

A) Sub
C) Assignment
B) function
D) static
A
2
If the function returns a string, you enter ____ at the end of the header.

A) String As
C) As String
B) (String)
D) Type As StringType
C
3
You use the ____ section of the function's header to specify the data type of the value returned by the function.

A) Like
C) Type
B) Dim
D) As dataType
D
4
A(n) ____ procedure returns a value after performing its assigned task.

A) return
C) function
B) sub
D) assignment
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
The header and footer in a function are identical to the header and footer in a sub procedure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
Most programmers pass a variable by reference only when a procedure needs to produce more than one result.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
The function's header and footer contain the ____ keyword.

A) Sub
C) SubFunction
B) FunctionProcedure
D) Function
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
Allowing more than one procedure to change the contents of a memory location can lead to subtle errors that are difficult to find, especially in large applications.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
A Sub procedure's header includes the As dataType section.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
If the function returns a Double number, you enter ____ at the end of the header.

A) Number Double
C) (Double)
B) As Double
D) Type as DoubleType(Double)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
The statement that invokes a function will always assign the function's return value to a variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
The sub procedure's header and footer contain the ____ keyword.

A) Sub
C) SubProcedure
B) Function
D) Subroutine
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
In most cases, the last statement within a function is Update expression.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
When changing the Sub keyword in a header to Function, the Code Editor automatically changes the Sub keyword in the footer to the Function keyword.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
As is true with a Sub procedure, a function can receive information either by value or by reference.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
After creating a function, you can invoke it from one or more places in an application's code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
A ____'s header includes the As dataType section.

A) procedure
C) caller
B) function
D) program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
You invoke a function that you create in exactly the same way as you invoke one of Visual Basic's built-in functions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
Fewer unintentional errors occur in applications when memory locations have the maximum scope needed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
Function procedures are referred to more simply as structures.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
The information a function receives is listed in the ____ in the header.

A) parameterList
C) return type
B) data type
D) function name
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
Like sub procedure names, function names typically begin with a(n) ____.

A) noun
C) adjective
B) verb
D) adverb
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
You know that a variable is passed by value when the keyword ____ appears before the parameter in the function's header.

A) ByRef
C) ByVal
B) ByValue
D) ByReference
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
A ____ under a variable in the Code Editor window indicates that it has not been declared.

A) bold color
C) green color
B) jagged line
D) dashed line
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
In a function, the data type of the expression in the Return statement must agree with the data type specified in the ____ section of the header.

A) Type As dataType
C) As dataType (Return)
B) Return As dataType
D) As dataType
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.