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

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Bonnie Keating
Used 169+ times
FREE Resource
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Keyword that tells the function what to print
Keyword that tells the function what value to send back
Keyword that tells the function what to add
Keyword that tells the function what parameter to pass
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What is a parameter for a function?
the scope of the functions variables
a variable used to send information to a function
the name of the function
the name of the main program calling the function
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What are the reasons for using functions? Select all that apply.
To build code that will be reused
To simplify code
To add comments
To help organize longer programs
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
WHAT IS THE DIFFERENCE BETWEEN A PARAMETER AND A FUNCTION?
1.Functions input values to a parameter
2.Parameter operate on those function values
1.Parameters input values to a function
2.Functions operate on those parameter values
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be printed?
nothing
5
6
"3 + 2"
Answer explanation
No print function is written. You need to print or save the function call.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be printed?
nothing
5
6
"3 + 2"
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be printed?
nothing
7
z
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.
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
AP CSP Unit 7 Review

Quiz
•
11th Grade
26 questions
P5.js Review - Part 2

Quiz
•
10th Grade
26 questions
Quiz 3 - Functions

Quiz
•
10th Grade
28 questions
Python Institute Practice exam 3

Quiz
•
11th Grade
25 questions
Data Types- Python

Quiz
•
7th - 11th Grade
25 questions
Final Exam P2Q2

Quiz
•
12th Grade
26 questions
AP CS P CodeHS Unit 5

Quiz
•
9th - 12th Grade
25 questions
Mastering Python Functions

Quiz
•
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