Functions Review (codeHS Tracy Python)

Flashcard
•
Computers
•
6th - 8th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the purpose of a function in Python?
Back
To create reusable blocks of code that can be called multiple times
2.
FLASHCARD QUESTION
Front
What is the correct way to define a function in Python? Options: def myFunction():, function myFunction(), define myFunction[], create function myFunction()
Back
def myFunction():
3.
FLASHCARD QUESTION
Front
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.
Back
Functions allow us to reuse code in multiple places in a program.
4.
FLASHCARD QUESTION
Front
True to False: You can call a function before you define it.
Back
False
5.
FLASHCARD QUESTION
Front
How would you call the function on line 11?
Back
draw_a_triangle()
6.
FLASHCARD QUESTION
Front
True to False: You will get an error on your screen when you run this program.
Back
True
7.
FLASHCARD QUESTION
Front
How many circles would be shown on the output screen?
Back
1
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Python L1 Knowledge Check

Flashcard
•
6th - 8th Grade
10 questions
Introduction to Python

Flashcard
•
8th Grade
8 questions
Python Variables

Flashcard
•
6th Grade
11 questions
Function in Python

Flashcard
•
KG
12 questions
Python Review

Flashcard
•
6th - 8th Grade
11 questions
Unit 9

Flashcard
•
8th Grade
10 questions
Basic Functions

Flashcard
•
6th - 8th Grade
4 questions
Perimeter And Area

Flashcard
•
7th 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
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
One Step Equations All Operations

Quiz
•
6th - 7th Grade
13 questions
Primary and Secondary Sources

Quiz
•
6th Grade
15 questions
Decimal Operations

Quiz
•
6th Grade
10 questions
Plotting Points on the Coordinate Plane

Quiz
•
7th - 8th Grade