Module 5 Flashcards

1
Q

A method that does not return a value when the task has completed

A

subroutine

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

A parameter which is not required by the called method but if included it can be used it must contain a default value

A

Optional parameter

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

Terminates execution of the subroutine and tells the program to return to the calling program

A

Return

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

A method with the same name as another method but which contains a different parameter list

A

overloading

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

A copy of a variable is made and passed to the called method. Changes to the copied variable do not affect the value of the original variable

A

Pass-by-value

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

A variable which is only known within the madhouse in which it is declared

A

Local Variable

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

A statement used in a subroutine to leave the subroutine if a specific condition or error occurs

A

Exit

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

The values being passed to the called method

A

Parameter

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

Performs tasks and can return information when the task has completed

A

Method

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

A variable is passed to the called method and the called method has access and is able to modify the original variable directly

A

Pass-by-reference

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

A method which will return a value to the calling routine once the task has completed

A

Function

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

A variable which is known throughout an entire program

A

global variable

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