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
11 questions
J277 Programming - Data Types

Quiz
•
9th - 11th Grade
8 questions
Year 9 Programming Mini Assessment

Quiz
•
9th Grade
13 questions
LMC Mnemonics

Quiz
•
9th - 11th Grade
12 questions
HTML - Tags, elements, tables and images

Quiz
•
7th - 9th Grade
16 questions
Subroutines

Quiz
•
9th - 11th Grade
11 questions
Casting in Java

Quiz
•
9th - 12th Grade
10 questions
KS4 Programming Techniques (1)

Quiz
•
8th - 10th Grade
10 questions
C# Programming Basics Quiz

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade