
CMU CS Academy Unit 2 Part 1 Functions
Flashcard
•
Mathematics
•
9th Grade
•
Practice Problem
•
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.
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
15 questions
Pelaku Ekonomi
Flashcard
•
8th Grade
10 questions
Sayuran Sehat untuk Anak-Anak
Flashcard
•
KG
11 questions
Daily Activities and Time Expressions
Flashcard
•
9th Grade
11 questions
DYLAN CUESTIONARIO
Flashcard
•
KG
11 questions
Understanding Rates of Reaction
Flashcard
•
9th Grade
18 questions
Soal Transformator
Flashcard
•
9th Grade
10 questions
Basic Concepts of Probability
Flashcard
•
8th Grade
10 questions
Avaliação 8º ANO
Flashcard
•
8th 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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Mathematics
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Box and Whisker Plots
Quiz
•
9th Grade
18 questions
Exponential Growth and Decay
Quiz
•
9th Grade
20 questions
Function or Not a Function
Quiz
•
8th - 9th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade