Functions Flashcards
a named list of statements
function
an invocation of a function’s name, causing the function’s statements to execute
function call
can be any valid identifier
function’s name
a function input specified in a function definition
parameter
a value provided to a function’s parameter during a function call
argument
the process of dividing a program into separate modules that can be developed and tested separately and then integrated into a single program
Modular development
a 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
Incremental development
A function’s statements may include branches, loops, calls to other functions, and other statements. (T or F)
True
Decomposing a program into functions can greatly aid program readability, helping yield an initially correct program, and easing future maintenance. (T or F)
True