
Python Functions Quiz
Authored by Joshwin Paulson
Computers
12th Grade
DOK Level 1: Recall covered

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in Python?
A block of code that only runs when it is called
A variable that stores data
A type of loop
A method to handle exceptions
Tags
DOK Level 1: Recall
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a function in Python?
func
define
def
function
Tags
DOK Level 1: Recall
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Abigail is writing a Python program and needs to define a function named `my_function`. What is the correct syntax she should use?
`def my_function:`
`def my_function():`
`function my_function()`
`define my_function()`
Tags
DOK Level 1: Recall
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es el término para los valores pasados a una función?
Parámetros
Argumentos
Variables
Constantes
Tags
DOK Level 1: Recall
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the term for the variables listed inside the parentheses in the function definition?
Parameters
Arguments
Variables
Constants
Tags
DOK Level 1: Recall
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `return` statement do in a function?
Ends the function execution
Returns a value and ends the function execution
Prints a value
Continues the function execution
Tags
DOK Level 1: Recall
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following function call: `def add(a, b): return a + b` and `print(add(2, 3))`?
2
3
5
6
Tags
DOK Level 1: Recall
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
14 questions
Topologías de red!
Quiz
•
12th Grade
10 questions
ZOOM QUIZ
Quiz
•
1st - 12th Grade
10 questions
1ª Recuperação - 3° Trim. - Pensamento Computacional - 9º ano
Quiz
•
9th Grade - University
10 questions
Attacchi informatici
Quiz
•
9th - 12th Grade
10 questions
Cos’è la ROM?
Quiz
•
6th - 12th Grade
10 questions
EMPTECH L4 Q3
Quiz
•
12th Grade
10 questions
Microcontroller
Quiz
•
11th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade