6. User Defined Functions Flashcards
(11 cards)
Function
a named list of statements.
Function Definition
Consists of the new function’s name and a block of statements. The function’s name can be any valid identifier.
Function Call
An invocation of a function’s name, causing the function’s statements to execute.
Local Variable
A variable declared in a function, which is then accessible only within that function.
Parameter
A function input specified in a function definition. Ex: A pizza area function might have diameter as an input.
Argument
A value provided to a function’s parameter during a function call. Ex: A pizza area function might be called as PrintPizzaArea(12.0) or as PrintPizzaArea(16.0).
Return Variable
A function may return one value by assigning a return variable with the return value
Return Value
Modular Development
the process of dividing a program into separate modules that can be developed and tested separately and then integrated into a single program.
Incremental development
Process in which a programmer writes and tests a few statements, then writes and tests a small amount more (an incremental amount), and so on.
Function Stub
function definition whose statements have not yet been written.