Python Functions and Returns

Quiz
•
Instructional Technology
•
9th - 12th Grade
•
Medium
Kathleen Mcnamara
Used 25+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
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
Similar Resources on Quizizz
14 questions
Media and Information Language

Quiz
•
11th - 12th Grade
18 questions
Algorithms and Computer Science

Quiz
•
6th - 9th Grade
11 questions
Sphero Block Coding

Quiz
•
KG - 12th Grade
18 questions
Programming in C language

Quiz
•
12th Grade - University
17 questions
Intro to Python Project Stem U4 Repetition Loops Vocab Quiz

Quiz
•
9th - 12th Grade
13 questions
4ESO. TECNOLOGIA. UNIT 5. TEST. DIGITAL ELECTRONIC

Quiz
•
10th Grade
10 questions
Introduction to Functions 12 G

Quiz
•
12th Grade
18 questions
LO13 Lesson 6

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Instructional Technology
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade