
Python Functions Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Vanissa Obina
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in Python?
A data structure
A block of code that runs when called
A built-in library
A type of variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do you call the data passed into a function?
Arguments
Variables
Expressions
Constants
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in Python?
function myFunction()
def myFunction():
create myFunction()
define myFunction:
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used to denote arbitrary arguments in a function?
#
*
&
%
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the return statement in a function?
To return a value from the function
To define a function
To end the function
To call another function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the pass statement do in a function?
Calls another function
Indicates an empty function definition
Terminates the function
Returns a value
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a lambda function?
A type of loop
A small anonymous function
A built-in data type
A method for recursion
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
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
15 questions
Excel
Quiz
•
10th - 12th Grade
13 questions
வகுப்பு 12 - அடோப் இன்டிசைன் CC 2019
Quiz
•
12th Grade
10 questions
Alapismeretek
Quiz
•
7th - 12th Grade
10 questions
Scratch
Quiz
•
KG - Professional Dev...
16 questions
AI Checkpoint 1 Revision
Quiz
•
9th - 12th Grade
10 questions
What is a program slides(6:16)
Quiz
•
8th - 12th Grade
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
