Functions Review (codeHS Tracy Python)

Flashcard
•
Computers
•
6th - 8th Grade
•
Hard
Wayground Content
Used 3+ times
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
15 questions
Non and Linear Lines

Flashcard
•
6th - 8th Grade
15 questions
Exponential Functions

Flashcard
•
7th - 9th Grade
15 questions
Unit 2 Test Review

Flashcard
•
8th Grade
15 questions
Math 8 Unit 2 Mid-Review

Flashcard
•
8th Grade
15 questions
Functions and Non-Functions

Flashcard
•
8th Grade
15 questions
Unit 5 Functions Test

Flashcard
•
8th Grade
14 questions
A1 Vocabulary Applying Quadratic Functions

Flashcard
•
6th - 8th Grade
15 questions
gerunds and infinitives review

Flashcard
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade