
CMU CS Academy Unit 2 Part 1 Functions
Authored by Maria Cruz Farooqi
Mathematics
9th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of using functions in programming?
To repeat code for every action needed
To create mini-programs that can be reused
To avoid using loops in the code
To make the code longer and more complex
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used in Python to define a function?
define
function
def
func
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of parameters in a function?
To give a unique name to each function
To provide input values that the function uses
To determine the return type of the function
To specify the number of times a function should run
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'def' keyword in Python indicate?
The end of a function
The start of a default statement
The definition of a new variable
The definition of a new function
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the significance of indentation in Python functions?
It makes the code look cleaner
It is optional and has no real use
It increases the execution speed of the function
It is used to define the body of the function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you call a function in Python?
By declaring the function name at the beginning of the code
Functions in Python are called automatically
By simply writing the function name followed by parentheses
Using the call keyword followed by the function name
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a parameter and an argument in a function?
Parameters are used to define functions, while arguments are used in function calls
Arguments are used to define functions, while parameters are used in function calls
Parameters and arguments are the same in Python
Parameters are optional, but arguments are mandatory
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
10 questions
Expressing Fractions to Decimal and Percent, vice versa
Quiz
•
9th - 12th Grade
15 questions
NUMBER SYSTEM
Quiz
•
9th Grade
10 questions
Lesson 5:Tangent and Secant Segments-Quarter 2-Short Quiz
Quiz
•
9th - 10th Grade
11 questions
Geometry Unit 3 Review
Quiz
•
9th Grade - University
14 questions
Bell Work 2/24
Quiz
•
7th Grade - University
12 questions
Surface area - cuboids, prisms, cylinders
Quiz
•
9th - 10th Grade
10 questions
Maths Revision Quiz (1) - Grade 3
Quiz
•
3rd Grade - University
10 questions
Bell Work 2/18
Quiz
•
7th Grade - University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Mathematics
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
11 questions
Adding and Subtracting Polynomials
Quiz
•
9th Grade
20 questions
Box and Whisker Plots
Quiz
•
9th Grade
18 questions
Exponential Growth and Decay
Quiz
•
9th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
24 questions
Solving Linear Equations with Variables on Both Sides
Quiz
•
9th Grade
20 questions
Rational and Irrational Numbers, Perfect Squares, & Perfect Cube
Quiz
•
9th Grade