Python Functions and Returns
Quiz
•
Instructional Technology
•
9th - 12th Grade
•
Practice Problem
•
Medium
Kathleen Mcnamara
Used 25+ times
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will print?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code output?
11, 9
16, 16
None, None
225, 117
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct code to define a function?
def area ( ):
area ( )
def area:
def area ( )
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How do you correctly call this function
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword marks a spot in a function where the program flow will go back to the calling code?
break
return
continue
jump
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements correctly defines a function named "haunted" that takes a parameter named "apple"?
haunted(apple)
haunted
def haunted(apple):
apple
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements will successfully send the value "EEK" back from a function to the calling code?
EEK
return EEK
back EEK
#print(EEK)
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
13 questions
IC3 GS6 Level 1 Domain 6 Assessment
Quiz
•
6th - 12th Grade
14 questions
Media and Information Language
Quiz
•
11th - 12th Grade
17 questions
IC3 GS6 Domain 4 Assessment
Quiz
•
6th - 12th Grade
10 questions
Sway Q&A
Quiz
•
9th - 12th Grade
16 questions
Hazard Communication Quiz
Quiz
•
12th Grade
10 questions
Year 8 Health and Safety Quiz
Quiz
•
8th - 11th Grade
12 questions
Nuclear Energy
Quiz
•
7th - 10th Grade
18 questions
Figuras Ocultas
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Instructional Technology
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Meiosis vs mitosis
Quiz
•
9th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
16 questions
Ethos, Pathos, Logos Practice
Quiz
•
9th Grade
15 questions
Two Step Equations
Quiz
•
9th Grade
