AP CSP Unit 7 Vocab Flashcards

1
Q

Parameter

A

a variable in a function definition. Used as a placeholder for values that will be passed through the function.

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

Argument

A

the value saved to the parameter in the function

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

Return

A

used to return the flow of control to the point where the procedure (also known as a function) was called and to return the value of expression.

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

procedural abstraction

A

Extracting shared features to generalize functionality
Using parameters allows the functions (also called procedures) to be generalized.

Using procedural abstraction helps improve code readability.

Procedural abstraction manages complexity by allowing for code reuse.

For example: the function move(id, direction) could be used to move an element in any direction, rather than writing separate functions for each direction.

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

Library

A

a group of functions (procedures) that may be used in creating new programs

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

API

A

Application Program Interface - specifications for how functions in a library behave and can be used

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

Modularity

A

the subdivision of a computer program into separate subprograms

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