Function names cannot begin with a number as the first character.
Functions With Return Values U1M2 Python

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Johnny Darling
Used 75+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def showName():
print("Tobias Ledford")
Which code below calls the function in the above code?
showName.run()
open(showName)
run showName
showName()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function with 2 integer parameters could start with which definition?
funct addNumbers(num1, num2):
def addNumbers(num1, num2):
def 2Numbers(num1, num2):
FUNCTION addNumbers(x, y):
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def addNum(num1 = 10):
print(num1 + num1)
Choose the correct output of calling the above function using the following code:
addNum()
0
10
20
An Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python Function return values must be stored in variables.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def addNum(num1 = 10):
return num1 + num1
Choose the correct output of calling the function above using the following code:
print(addNum(100))
20
100
200
an error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def addNumbers(num1, num2 = 10):
return num1 + num2
Choose the correct output of calling the function above using the following code:
print(addNumbers(100))
100
110
200
An Error
Create a free account and access millions of resources
Similar Resources on Quizizz
11 questions
recap DIN h446

Quiz
•
12th Grade
11 questions
Control Structures - Selection in Python

Quiz
•
8th Grade - University
10 questions
Python Revision Tour

Quiz
•
12th Grade
10 questions
Python: Functions and Parameters

Quiz
•
9th - 12th Grade
10 questions
J277 - 2.2 - Functions in Python

Quiz
•
10th Grade - University
15 questions
Python revision

Quiz
•
10th Grade - University
14 questions
Python Data types & Exceptions

Quiz
•
1st - 10th Grade
10 questions
AP CSP Review

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University