Shared Flashcard Set

Details

04-Functions
Python for Informatics - Dr. Charles Severance
19
Computer Science
Not Applicable
08/09/2015

Additional Computer Science Flashcards

 


 

Cards

Term
algorithm
Definition
A general process for solving a category of problems.
Term
argument
Definition
A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
Term
body
Definition
The sequence of statements inside a function definition.
Term
composition
Definition
Using an expression as part of a larger expression, or a statement as part of a larger statement.
Term
deterministic
Definition
Pertainingtoaprogramthatdoesthesamethingeachtimeitruns, given the same inputs.
Term
dot notation
Definition
The syntax for calling a function in another module by specifying the module name followed by a dot (period) and the function name.
Term
flow of execution
Definition
The order in which statements are executed during a program run.
Term
fruitful function
Definition
A function that returns a value.
Term
function
Definition
A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result.
Term
function call
Definition
A statement that executes a function. It consists of the function name followed by an argument list.
Term
function definition
Definition
Astatementthatcreatesanewfunction,specifyingitsname, parameters, and the statements it executes.
Term
function object
Definition
A value created by a function definition. The name of the func- tion is a variable that refers to a function object.
Term
header
Definition
The first line of a function definition.
Term
import statement
Definition
A statement that reads a module file and creates a module
object.
Term
module object
Definition
A value created by an import statement that provides access to the data and code defined in a module.
Term
parameter
Definition
A name used inside a function to refer to the value passed as an argument.
Term
pseudorandom
Definition
Pertaining to a sequence of numbers that appear to be random, but are generated by a deterministic program.
Term
return value
Definition
The result of a function. If a function call is used as an expression, the return value is the value of the expression.
Term
void function
Definition
A function that does not return a value.
Supporting users have an ad free experience!