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
Similar Polygons

Flashcard
•
9th - 12th Grade
10 questions
Translations of Quadratic Functions

Flashcard
•
9th - 12th Grade
10 questions
Review - Rigid Transformations of Parent Functions

Flashcard
•
9th - 12th Grade
10 questions
Parent Function Translations

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
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Instructional Technology
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University