chi. 5 intro program
A __________ constant is a name that references a value that cannot be changed while the program runs.
global
A __________ variable is accessible to all the functions in a program file.
global
It is recommended that programmers avoid using __________ variables in a program whenever possible.
global
The first line in a function definition is known as the function
header
A(n) __________ chart is also known as a structured chart.
hierarchy
The Python library functions that are built into the Python __________ can be used by simply calling the required function
interpreter
A __________ variable is created inside a function.
local
The __________ design technique can be used to break down an algorithm into functions
top-down
In Python you can have a list of variables on the left side of the argument operator.
True
One reason not to use global variables is that it makes a program hard to debug.
True
A function definition specifies what a function does and causes the function to execute.
False
A hierarchy chart shows all the steps that are taken inside a function
False
A local variable can be accessed from anywhere in the program.
False
In Python there is no restriction on the name of a module file.
False
The pass keyword is used to pass arguments to a function
False
The value assigned to a global constant can be changed in the mainline logic.
False
Unlike other languages, in Python the number of values a function can return is limited to one.
False
A value-returning function is like a simple function except that when it finishes it returns a value back to the part of the program that called it.
True
Different functions can have local variables with the same names.
True
Python allows you to pass multiple arguments to a function
True
Python function names follow the same rules as those for naming variables.
True
The function header marks the beginning of the function definition.
True
To assign a value to a global variable in a function, the global variable must be first declared in the function.
True
What is a group of statements that exists within a program for the purpose of performing a specific task?
a function
A(n) __________ is any piece of data that is passed into a function when the function is called.
argument
A set of statements that belong together as a group and contribute to the function definition is known as a
block
When a function is called by its name during the execution of a program, then it is
executed
A(n) __________ is a variable that receives an argument that is passed into a function.
parameter
The _____________ keyword is ignored by the Python interpreter and can be used as a placeholder for code that will be written later.
pass
The __________ of a local variable is the function in which that variable is created.
scope