CS-3320 Chapter 5 Quiz Study Questions
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 math function atan(x) returns one tangent of x in radians.
False
The value assigned to a global constant can be changed in the mainline logic.
False
Unfortunately, there is no way to store and call on functions when using turtle graphics.
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
In Python you can have a list of variables on the left side of the assignment operator.
True
One reason not to use global variables is that it makes a program hard to debug.
True
One reason to store graphics functions in a module is so that you can import the module into any program that needs to use those functions.
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
The randrange function returns a randomly selected value from a specific sequence of numbers.
True