Flashcards
Chapter 3 Functions
Flashcards do conjunto (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.
Informações
- Descrição
- O usuário eliminou as informações de disciplina FlashCards sobre Chapter 3 Functions, criado por Usuário eliminado em 22-09-2016.
- Criado por
- Usuário eliminado
- Visualizações
- 341
- Histórico
-
- Criado por Troy Bowlin · 1 mai 2016
- Copiado por Troy Bowlin · 22 set 2016
- Avaliação