CMU CS Academy Unit 2 Part 1 Functions

Flashcard
•
Mathematics
•
9th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is a function in Python?
Back
A function is a block of reusable code that performs a specific task and can be called when needed.
2.
FLASHCARD QUESTION
Front
What is the purpose of a return statement in a function?
Back
The return statement is used to exit a function and send a value back to the caller.
3.
FLASHCARD QUESTION
Front
What is a function's signature?
Back
A function's signature includes its name and the number and types of its parameters.
4.
FLASHCARD QUESTION
Front
What is the difference between a built-in function and a user-defined function?
Back
Built-in functions are provided by Python, while user-defined functions are created by the programmer.
5.
FLASHCARD QUESTION
Front
What does it mean to 'call' a function?
Back
To 'call' a function means to execute it by using its name followed by parentheses.
6.
FLASHCARD QUESTION
Front
What is a local variable?
Back
A local variable is a variable that is defined within a function and can only be accessed inside that function.
7.
FLASHCARD QUESTION
Front
What is a global variable?
Back
A global variable is a variable that is defined outside of any function and can be accessed from any function in the program.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
End Behavior of Exponential Functions

Flashcard
•
9th Grade
15 questions
Writing Exponential Functions

Flashcard
•
9th Grade
15 questions
Simplifying Rational Functions

Flashcard
•
9th Grade
15 questions
Even and Odd Functions

Flashcard
•
9th Grade
15 questions
Exponetial Functions Test Review

Flashcard
•
9th Grade
15 questions
Unit 11 Day 3 - Exponential Functions Mixed Practice

Flashcard
•
9th Grade
15 questions
Graphing Exponential Functions

Flashcard
•
9th Grade
15 questions
Parent Functions

Flashcard
•
9th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Mathematics
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
12 questions
Graphing Inequalities on a Number Line

Quiz
•
9th Grade
15 questions
Two Step Equations

Quiz
•
9th Grade
15 questions
Combining Like Terms and Distributive Property

Quiz
•
9th Grade
12 questions
Absolute Value Equations

Quiz
•
9th Grade
8 questions
ACT Math Strategies

Lesson
•
9th Grade
10 questions
Solving Absolute Value Equations

Quiz
•
9th Grade
16 questions
Parallel Lines Cut by a Transversal

Lesson
•
9th - 10th Grade