
Python Functions Quiz

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Austin OBrien
Used 3+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword do we start with when creating our own functions in Python?
function
def
void
main
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does 'def' stand for?
deft
defend
definitely
define
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following Python code?
def add(a, b):
return a + b
result = add(3, 5)
print(result)
8
5
3
35
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'return' statement in a Python function?
To stop the execution of the function
To return a value from the function
To print a message to the console
To define a new variable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When declaring a function, the variables inside the parentheses are called what? Example:
def add(num1, num2)
Copies
output variables
input variables
strings
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When we want to run a function, we...
Define it
Call it
Declare it
Copy it
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function can return a value or many values back to where it was first "called".
True
False
Similar Resources on Wayground
10 questions
Python with DataScience

Quiz
•
7th Grade - University
10 questions
Programming Fundamentals Recap

Quiz
•
8th Grade
12 questions
Functions Review (codeHS Tracy Python)

Quiz
•
6th - 8th Grade
10 questions
Python Statements

Quiz
•
5th - 7th Grade
10 questions
Python3

Quiz
•
4th Grade - University
10 questions
Functions

Quiz
•
8th Grade
10 questions
Programming with Python

Quiz
•
7th - 9th Grade
12 questions
Python 201 Lessons 2&3 Vocab

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
30 questions
Teacher Facts

Quiz
•
6th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
22 questions
Figurative Language

Quiz
•
7th Grade