WorksheetsPython Functions
Total questions: 13
Worksheet time: 7mins
Which of the following items are present in the function header?
Function name only
Both function name and parameter list
parameter list only
Return value
Which of the following keywords marks the begining of the function block?
Func
define
def
function
What term is used to describe data passed into/out of a program?
Variable
Loop
Constant
Parameter
What is a piece of code that can take inputs to perform a certain task?
a function
arguments
parameters
Consider the line of code:
Label('Go Team', 200, 100)
What is the Label?
argument
parameter
function name
Consider the line of code:
Label('Go Team', 200, 100)
What is 'Go Team' ?
argument
parameter
function name
When defining a function, the definition must occur before it is called.
true
false
Which of the following terms best describes the code above?
function call
function definition
What is the name for the code highlighted in red?
function name
function definition
parameters
arguments
Line 6 is called
function definition
function call
function name
The code highlighted in blue is best defined as:
function name
function call
function definition
arguments
parameters
What is a parameter in a function?
input value to a function for the function’s execution
a variable used to send information to a function
the name of the function
the name of the main program calling the function
