
Python Function
Presentation
•
Computers
•
8th - 10th Grade
•
Medium
Asma Al-Faran
Used 48+ times
FREE Resource
1 Slide • 23 Questions
1
Python Function
By Asma Al-Faran
2
Multiple Choice
What keyword is used to halt a function and go back to the calling code?
stop
base case
quit
return
3
Multiple Choice
Every time you _ a function, the indented statements are run.
return
use
call
4
Multiple Choice
Which function has the correct function syntax?
5
Multiple Choice
What is the output?
None
98
17
72
6
Multiple Choice
What keyword is required to define a function?
define
return
def
base case
7
Multiple Choice
What is the output when z = 2
2
2
1
2
1
0
0
1
2
8
Multiple Choice
How to create a function in Python
def myFunction():
create myFunction():
define myFunction():
make myFunction():
9
Multiple Choice
What is the output?
if "cat" == "dog":
print("purr")
else:
print("woof")
purr
purr
woof
woof
error
10
Multiple Choice
Which is the correct statement used to check if two values 'a' and 'b' are equal to each other
if a == b
if a = b
if a == b:
none of the mentioned
11
Multiple Choice
12
Multiple Choice
You assign a value to a variable with which symbol
@
==
=
*
13
Multiple Choice
What is the output from the following code:
[3,2,6,1,Dave]
[Dave,3,2,6,1]
[3,2,6,1,'Dave']
['Dave',3,2,6,1]
14
Multiple Choice
You can evaluate an expression using:
@
==
=
*
15
Multiple Choice
The name of the function you use to test the length of a string or list ?
lenght()
length()
len()
leng()
16
Multiple Choice
What data type does the input() function always return ?
Boolean
String
Integer
Float
17
Multiple Choice
The use of for or while loops are examples of:
Selection
Iteration
18
Multiple Choice
Which of the following data types is shown below?
L = [2, 54, 'javatpoint', 5]
Dictionary
Tuple
List
Stack
19
Multiple Choice
What is the correct way to create a function in Python?
create myFunction():
def myFunction():
function myFunction():
20
Multiple Choice
Which statement is used to stop a loop?
stop
return
break
exit
21
Multiple Choice
What is used to define a block of code (body of loop, function etc.) in Python?
Curly braces
Parenthesis
Indentation
Quotation
22
Multiple Choice
How are comments initiated in Python?
#Comment
//Comment
/Comment/
(Comment)
23
Multiple Choice
Which type of function is provided by the Python language?
Anonymous Functions
User-defined Functions
Object Functions
Built-in functions
24
Multiple Choice
When defining a function, what do we call the variables that are put in the brackets as placeholders for the arguments?
arguments
parameters
inputs
placeholders
Python Function
By Asma Al-Faran
Show answer
Auto Play
Slide 1 / 24
SLIDE
Similar Resources on Wayground
18 questions
Absolute Value Equations
Presentation
•
8th - 10th Grade
18 questions
Estar with Conditions and Emotions
Presentation
•
8th - 10th Grade
20 questions
Solving and Graphing Linear Inequalities
Presentation
•
8th - 10th Grade
18 questions
Correct Posture at the Computer
Presentation
•
7th - 10th Grade
21 questions
Classify Triangles by Angles and Sides
Presentation
•
8th - 10th Grade
20 questions
GOOGLE APPS
Presentation
•
9th Grade
19 questions
Suffrage
Presentation
•
8th - 10th Grade
20 questions
States of Matter Review
Presentation
•
3rd Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Assessment 2
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
12 questions
2026 TAP Technology in the Classroom
Presentation
•
Professional Development
15 questions
HCS SCI 05 Summer School Assessment 2 Review
Quiz
•
5th Grade
15 questions
HCS SCI 04 Summer School Review 2
Quiz
•
4th Grade
59 questions
Geometry Unit 3 Review
Quiz
•
9th - 12th Grade
14 questions
FAST ELA READING SMAPLE TEST MATERIALS
Passage
•
3rd Grade