What will print? Options: nothing, 5, 6, an error message
Python Functions and Returns

Flashcard
•
Instructional Technology
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

14 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
nothing
2.
FLASHCARD QUESTION
Front
What does the following code output? Options: 11, 9; 16, 16; None, None; 225, 117
Back
11, 9
3.
FLASHCARD QUESTION
Front
Which of the following is the correct code to define a function? Options: def area ( ):, area ( ), def area:, def area ( )
Back
def area ( ):
4.
FLASHCARD QUESTION
Front
How do you correctly call this function? Options: def(1), x=square( ), defSquare(4), x=square(5)
Back
x=square(5)
5.
FLASHCARD QUESTION
Front
Which keyword marks a spot in a function where the program flow will go back to the calling code? Options: break, return, continue, jump
Back
return
6.
FLASHCARD QUESTION
Front
Which of the following statements correctly defines a function named "haunted" that takes a parameter named "apple"? Options: haunted(apple), haunted, def haunted(apple):, apple
Back
def haunted(apple):
7.
FLASHCARD QUESTION
Front
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)
Back
return EEK
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Translations of Quadratic Functions

Flashcard
•
9th - 12th Grade
10 questions
80's Trivia

Flashcard
•
KG - University
10 questions
Piecewise Functions

Flashcard
•
9th - 12th Grade
12 questions
Python Functions

Flashcard
•
9th - 12th Grade
12 questions
Python Functions

Flashcard
•
9th - 12th Grade
8 questions
Python Functions

Flashcard
•
9th - 12th Grade
10 questions
Obscure Disney Trivia

Flashcard
•
9th - 12th Grade
10 questions
Angle Addition Postulate

Flashcard
•
9th - 12th 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