Subprograms Flashcards

(6 cards)

1
Q

argument

A

a specific value that’s passed to the parameter of a subprogram or function when you call it.

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

parameter

A

A placeholder variable for a function or subprogram that’s specified when an argument is passed in. Like a mathematical variable for a function.

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

parameter list

A

Defines the number and types of inputs a function or subprogram can accept (like the domain of a mathematical function).

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 reusable block of code that performs a specific task — either by computing a result or by carrying out an action

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

value parameter

A

A parameter that receives a copy of the argument’s value when the function is called; changes to it don’t affect the original variable.

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