7.1-7.4 QUIZ Flashcards
Procedural abstraction
Extracting shared features to generalize functionality
What does Procedural abstraction do?
improves code readability and manages complexity by enabling code reuse.
What do parameters do?
allows functions (also called procedures) to be generalized.
What do functions with parameters and return values do?
simplify code and allow for greater flexibility.
How many value can functions return at a time?
One
What are the 4 types of functions?
No parameters, no return values
Parameters, but no return values
Return values, but no parameters
Parameters and return values
Parameter
A variable used in a function definition to accept input values when the function is called.
Argument
The actual value provided to a parameter when calling a function.
Return
The output value that a function sends back to the part of the program where it was called.