Chapter 6 Flashcards
TF
Programmers rarely define their own functions.
False
TF
A function may only be called at one place in a program.
False
TF
Information can be passed into a function through parameters.
True
TF
Every Python function returns some value.
True
TF
In Python, some parameters are passed by reference.
False
TF
In Python, a function can return only one value.
False
TF
Python functions can never modify a parameter.
False
TF
One reason to use functions is to reduce code duplication.
True
TF
Variables defined in a function are local to that function.
True
TF
It’s a bad idea to define new function if it makes a program longer.
False
The part of the program that uses a function is called the
Caller
A Python function definition begins with
def
A function can send output back to the program with a(n)
Return
Formal and actual parameters are matched up by
Position
Which of the following is not a step in the function-calling process
Control returns to the point just before the function was called