Free to use. Edit it, share it and hand it out to your students.
Oak National Academy
11 questions
What is the term used for the name of a subroutine?
In this code:def num_walks(total_dogs, total_days):total_dogs and total_days are:
A ___ chart is created to decide the hierarchy for a program.
A subroutine interface is made up of which items?
Select the statement that is true.
What code is missing from the program? ___ multiply_two_numbers(number1, number2) answer = number1 * number2 return answerresult = multiply_two_numbers(5,5)print(result)
Match the term to the definition.
___ are used in subroutines to allow values to be passed into them.
___ are the values held in the brackets of a subroutine call.
This code is an example of:def calculate(a, b): answer = a + b return answeranswer = calculate(5, 10)
What keyword is used to define a subroutine in Python?