Flashcards
Chapter 3 Functions
Cards in this deck (21)
- 1FunctionA named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result.
- 2Function DefinitionA statement that creates a new function, specifying its name, parameters, and the statements it executes.
- 3Function ObjectA value created by a function definition. The name of the function is a variable that refers to a function object.
- 4HeaderThe first line of a function definition.
- 5BodyThe sequence of statements inside a function definition.
- 6ParameterA name used inside a function to refer to the value passed as an argument.
- 7Function CallA statement that executes a function. It consists of the function name followed by an argument list.
- 8ArgumentA value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
- 9Local VariableA variable defined inside a function. A local variable can only be used inside its function.
- 10Return ValueThe result of a function. If a function call is used as an expression, the return value is the value of the expression.
- 11Fruitful FunctionA function that returns a value.
- 12Void FunctionA function that doesn’t return a value.
- 13ModuleA file that contains a collection of related functions and other definitions.
- 14Import StatementA statement that reads a module file and creates a module object.
- 15Module ObjectA value created by an import statement that provides access to the values defined in a module.
- 16Dot NotationThe syntax for calling a function in another module by specifying the module name followed by a dot (period) and the function name.
- 17CompositionUsing an expression as part of a larger expression, or a statement as part of a larger statement.
- 18Flow of ExecutionThe order in which statements are executed during a program run.
- 19Stack DiagramA graphical representation of a stack of functions, their variables, and the values they refer to.
- 20FrameA box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.
- 21TracebackA list of the functions that are executing, printed when an exception occurs.
Information
- Description
- User has deleted their subject information Flashcards on Chapter 3 Functions, created by Deleted user on 22/09/2016.
- Created by
- Deleted user
- Views
- 341
- History
-
- Created by Troy Bowlin · May 1, 2016
- Copied by Troy Bowlin · Sep 22, 2016
- Rating