7.1-7.4 QUIZ Flashcards

1
Q

Procedural abstraction

A

Extracting shared features to generalize functionality

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

What does Procedural abstraction do?

A

improves code readability and manages complexity by enabling code reuse.

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

What do parameters do?

A

allows functions (also called procedures) to be generalized.

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

What do functions with parameters and return values do?

A

simplify code and allow for greater flexibility.

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

How many value can functions return at a time?

A

One

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

What are the 4 types of functions?

A

No parameters, no return values
Parameters, but no return values
Return values, but no parameters
Parameters and return values

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

Parameter

A

A variable used in a function definition to accept input values when the function is called.

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

Argument

A

The actual value provided to a parameter when calling a function.

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

Return

A

The output value that a function sends back to the part of the program where it was called.

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