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
Function names cannot begin with a number as the first character.
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 Wayground
7 questions
[Python OOP] Inheritance, special function

Quiz
•
12th Grade
14 questions
Python Control Structures Vocab quiz

Quiz
•
9th - 12th Grade
15 questions
C# alapok 2

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

Quiz
•
9th - 12th Grade
15 questions
Python revision

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

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

Quiz
•
8th Grade - University
10 questions
Error Finding

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade