![placeholder image to represent content](/_next/image?url=%2Fassets%2Fquiz_default_logo.jpg&w=256&q=75)
Python Functions
Quiz by Yaithd Daniel Olivas Arcos
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
- Q1
It is a piece of code that only runs when it is called.
Users re-arrange answers into correct orderJumble300s - Q2
Choose the correct keyword to create a function.
my_function
create
define
def
300s - Q3
Choose the correct order to create a function.
Users link answersLinking300s - Q4
To call a function we need to type the function name followed by the parenthesis containing the values for the parameters.
truefalseTrue or False300s - Q5
Which of the following codes describes a function that prints "Hello world"?
300s - Q6
Choose the correct line of code to call a function whose name is sum and its parameters are 3 and 4.
sum[3,4]
sum()3,4
sum(3,4):
sum(3,4)
300s - Q7
Link the pieces of code with their corresponding name.
Users link answersLinking300s - Q8
Choose the line of code to call a function whose name is "find" and has 3 parameters.
def find(2,3,4)
find(2,4,6,8)
find(2,3)
find(2,4,6)
300s - Q9
With "return" we can obtain the result of an operation inside a function.
truefalseTrue or False300s - Q10
Choose the code that doesn't have any mistakes.
300s