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
Similar Resources on Wayground
28 questions
CSP Unit 7 Review Code.org

Quiz
•
9th - 12th Grade
23 questions
Coding 1 Midterm Prep

Quiz
•
10th - 12th Grade
31 questions
CMU CS (2) Functions, Mouse Events, Variables, Shape Properties

Quiz
•
9th - 12th Grade
33 questions
2.1.1 CSE Transitioning from Block to Text Coding

Quiz
•
9th - 12th Grade
30 questions
PICO-8 Quiz

Quiz
•
9th Grade - University
23 questions
Python Review Questions

Quiz
•
10th - 12th Grade
30 questions
Python Quiz 2

Quiz
•
10th Grade
27 questions
Unit 2 Computer Science Review

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade