Subprograms Flashcards

(6 cards)

1
Q

What is an 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

What is a 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

What is a 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

What is a 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

What is a 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

What is a 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