
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
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Control y Robótica
Quiz
•
12th Grade
10 questions
Google Apps
Quiz
•
10th Grade - Professi...
10 questions
PUNCTUATION SPACING RULES
Quiz
•
9th - 12th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
10 questions
Explorando Tinkercad en Secundaria
Quiz
•
7th Grade - University
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th 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
