Unit 1 lesson 2.2 Flashcards

(6 cards)

1
Q

Argument

A

The actual value or data you pass to a function or subprogram when you call it.

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

Parameter

A

A variable in a function or subprogram definition that acts as a placeholder for the value (argument) you pass when you call the function.

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

Parameter list

A

A set of parameters defined in a function or subprogram specifying the number and types of inputs the function can accept.

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

Reference parameter

A

A type of parameter that allows a function to modify the actual variable passed to it.

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

Subprogram (Function)

A

A general term for a block of code that performs a specific task and can be reused.

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

Value parameter

A

A type of parameter that passes a copy of the argument’s value to the function.

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