Lesson#9 Call Procedures and Pass Data Between Procedures Flashcards

1
Q

What are the 2 separate procedures involved, when calling a procedure?

A

The caller and the called.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 3 different ways to call a procedure?

A
  • Procedure name and its arguments.
  • Call keyword
  • Application.Run method
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does procedure scope refer to?

A

The procedures that can call a specific procedure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you specify a sub procedures scope?

A

Adding the appropriate keyword prior to the Sub keyword.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the 2 main rules for a Public procedure scope?

A

It is the default scope and can generally be called by any procedure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the main rule for a Private procedure scope?

A

It can be called by procedures in its same module.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are arguments?

A

They allow you to pass data to a procedure, the procedure that receives the arguments can use that data when executed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What type of procedure do you have to use when data flows from the caller procedure to the called procedure?

A

Both can be Sub or Function procedures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What type of procedure do you have to use when data flows from the called procedure to the caller procedure?

A

The called procedure must be a Function procedure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you declare a procedure that receives arguments in a statement?

A

Sub ProcedureName(ArgumentList)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you declare a procedure that receives arguments with data types in a statement?

A

Add “As” then the “DataType”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the 2 rules to take into account when declaring optional arguments?

A

Optional goes before the name of the first optional argument, all arguments to the right of Optional are optional.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What rule do you need to take into account when specifying a default value for an optional argument?

A

Using the assignment operator (=) after argument name and data type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do you pass arguments to a procedure which has been called by the procedure name and arguments method?

A

Arguments aren’t within parentheses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do you pass arguments to a procedure which has been called by the Call keyword method?

A

Arguments are within parentheses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you pass arguments to a procedure which has been called by the Application.Run method?

A

The first parameter of method is the procedure name followed by the arguments.