What is a return in a function?
Python Functions Review Flashcard

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

33 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
Keyword that tells the function what value to send back
2.
FLASHCARD QUESTION
Front
What will be printed? Options: nothing, 5, 6, "3 + 2"
Back
nothing
Answer explanation
No print function is written. You need to print or save the function call.
3.
FLASHCARD QUESTION
Front
What will be printed? Options: nothing, 5, 6, "3 + 2"
Back
5
4.
FLASHCARD QUESTION
Front
What will be printed? Options: nothing, 7, z, 12
Back
12
Answer explanation
9 is returned from the function call with 4 &5. Then 9 is passed with the 3 to the function again with 12 as the return value.
5.
FLASHCARD QUESTION
Front
How many times will Boo print?
Back
4
Answer explanation
range(1,4) starts at 1 and goes to one less than 5. So it runs for 1, 2, 3 & 4. 4 times
6.
FLASHCARD QUESTION
Front
What will print? Options: 1 2, 1, 3, 5
Back
5
Answer explanation
Remember PEMDAS
7.
FLASHCARD QUESTION
Front
Leo wants to create a function that will roll a dice. Which is the correct function definition header?
Back
def diceroll ():
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
Computer Science Discoveries Unit 3 Chapter 2 Mastery Check

Flashcard
•
9th - 12th Grade
29 questions
Unit 3: Intro to App Design Review

Flashcard
•
9th - 12th Grade
28 questions
AP CSP Unit 3 Review (code.org)

Flashcard
•
10th - 12th Grade
23 questions
Intro to CS - Unit 3 Review (Functions)

Flashcard
•
9th - 12th Grade
28 questions
AP Computer Science Principles Units 1-3

Flashcard
•
9th - 12th Grade
30 questions
AP CSA Unit 2 Review

Flashcard
•
10th - 12th Grade
28 questions
For and While Loops in Python

Flashcard
•
9th - 12th Grade
25 questions
Intro to CS Unit 3 Review

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 Computers
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