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
Python Function

Quiz
•
11th - 12th Grade
15 questions
Python elif and Nested if

Quiz
•
12th Grade
14 questions
Computing Revision JCG

Quiz
•
KG - University
11 questions
Python function output based KVRDSO lucknow

Quiz
•
11th - 12th Grade
10 questions
PCEP Section 4B: the function and its environment

Quiz
•
12th Grade
10 questions
Python Basics

Quiz
•
8th - 10th Grade
15 questions
PYTHON PROGRAMMING

Quiz
•
11th - 12th Grade
10 questions
2.1.2 Flowcharts and algorithms

Quiz
•
10th 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