Functions Review (codeHS Tracy Python)
Quiz
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Medium
Amanda Silverman
Used 9+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. What is the purpose of a function in Python?
A) To store data in a list
B) To run code in a loop
C) To create reusable blocks of code that can be called multiple times
D) To display text on the screen
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. What is the correct way to define a function in Python?
def myFunction():
function myFunction()
define myFunction[]
create function myFunction()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. Which of the following statements is true about functions in Python?
Functions in Python do not require parameters.
Functions always return a value.
Functions can only be used once in a program.
Functions allow us to reuse code in multiple places in a program.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. True to False: You can call a function before you define it.
4. True to False: You can call a function before you define it.
True
False
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
5. How would you call the function on line 11?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. True to False:
6. True to False:
You will get an error on your screen when you run this program.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. How many circles would be shown on the output screen?
7. How many circles would be shown on the output screen?
0
1
2
3
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
13 questions
CODING QUIZZ
Quiz
•
8th Grade
10 questions
Графіка в Пайтон
Quiz
•
6th Grade
10 questions
Ստանդարտ ֆունկցիաներ - Python
Quiz
•
7th Grade
10 questions
Working with Music, Videos, and Pictures and Customizing Windows
Quiz
•
5th - 7th Grade
10 questions
Year 8 - Progress Check 1 (Python Turtle Shapes)
Quiz
•
8th - 9th Grade
15 questions
Cyber Security Homework 1
Quiz
•
7th - 9th Grade
16 questions
DATA SCIENCE Assessment (April)
Quiz
•
8th - 12th Grade
10 questions
Class 7_Computer Quiz
Quiz
•
7th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
