Python Functions Review Quiz
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Bonnie Keating
Used 172+ times
FREE Resource
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a return in a function?
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
23 questions
IAW_2AS3_PHP_1
Quiz
•
1st Grade - University
24 questions
ETech Quiz reviewer week 1
Quiz
•
11th Grade
30 questions
Programming Techniques
Quiz
•
8th - 10th Grade
25 questions
III 3rdQ Quiz 1
Quiz
•
12th Grade
25 questions
INFORMATIKA KELAS IX
Quiz
•
9th - 12th Grade
27 questions
CDI - Electronic Components & Signals
Quiz
•
10th - 12th Grade
25 questions
BTEC Creative Digital Media - Unit 01 - Test 02
Quiz
•
10th - 11th Grade
23 questions
9th L1 L2
Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
