Unit 7 - Parameters, Return, and Libraries Flashcards
What is a parameter?
A variable in a function definition used as a placeholder for values that will be passed through the function.
What is an argument?
The value passed to the parameter.
What does ‘return’ do in a function?
Used to return the flow of control to the point where the procedure was called and to return the value of the expression.
What is procedural abstraction?
A process that allows a procedure to be used only knowing what it does, not how it does it. It enables solving a large problem based on smaller subproblems.
What is a library in programming?
A group of functions (procedures) that may be used in creating new programs.
What does API stand for?
Application Program Interface - specifications for how functions in a library behave and can be used.
What is modularity in programming?
The subdivision of a computer program into separate subprograms.