WorksheetsComputer Programming Chapter 3 Review
Total questions: 21
Worksheet time: 11mins
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.
function
statement
expression
value
A statement that creates a new function, specifying its name, parameters, and the statements it contains.
function definition
module import statement
function call
program script filename
A value created by a function definition. The name of the function is a variable that refers to a function object.
function object
module object
data type
return value
The first line of a function definition.
header
body
parameter
function call
The sequence of statements inside a function definition.
body
header
parameter
argument
A name used inside a function to refer to the value passed as an argument.
parameter
body
header
function call
A statement that runs a function. It consists of the function name followed by an argument list in parentheses.
function call
parameter
body
header
A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
argument
parameter
header
body
A variable defined inside a function which can only be used inside its function.
local variable
return value
global variable
argument
The result of a function.
return value
argument
parameter
local variable
A function that returns a value.
fruitful function
void function
A function that always returns None.
fruitful function
void function
A file that contains a collection of related functions and other definitions.
module
script
variable
object
A statement that reads a module file and creates a module object.
import statement
function call
function definition
print statement
A value created by an import statement that provides access to the values defined in a module.
module object
parameter
argument
return value
The syntax for calling a function in another module by specifying the module name followed period and the function name.
dot notation
comment
naming convention
order of operations
Using an expression as part of a larger expression, or a statement as part of a larger statement.
composition
commenting
debugging
diagramming
The order statements run in.
flow of execution
order of operations
dot notation
import statement
A special value returned by void functions.
None
String
Integer
Floating Point
A graphical representation of a stack of functions, their variables, and the values they refer to.
stack diagram
module
order of operations
flow of execution
A list of the functions that are executing, printed when an exception occurs.
traceback
error type
line number
break point
