Chapter 11 - Programming Flashcards
Constant
Named value that cannot change the execution of a program
Variable
Named value that can change the execution of a program
Function
Set of statements that can be grouped together and called in a program when required instead of repeating the statements each time. Returns a value
Procedure
Set of statements that can be grouped together and called in a program when required instead of repeating the statements each time. Does not return a value
Parameter
Variable applied to a procedure/function that allows one to pass in a value for the procedure to use
By value
Method of passing a parameter to a procedure in which the value of the variable cannot be changed by the procedure
By reference
Method of passing a parameter to a procedure in which the value of the variable can be changed by the procedure
Header
First statement in the definition of a procedure/function which contains its name, parameters, and if for a function, the type of return value
Argument
Value passed to a procedure/function