
Python Function
Presentation
•
Computers
•
8th - 10th Grade
•
Medium
Asma Al-Faran
Used 53+ times
FREE Resource
1 Slide • 23 Questions
1
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
By Asma Al-Faran
Show answer
Auto Play
Slide 1 / 24
SLIDE
Similar Resources on Wayground
19 questions
Spanish Stem Changing Verbs (e->i) Pedir, Servir
Presentation
•
8th - 10th Grade
19 questions
Monologues, Soliloquies, and Asides
Presentation
•
8th - 10th Grade
20 questions
C5L3 Solving Systems of Equations
Presentation
•
8th - 10th Grade
18 questions
Perfect Verb Tenses
Presentation
•
KG
20 questions
Introduction: Systems of Equations
Presentation
•
8th - 10th Grade
18 questions
Comparing and Ordering Real Numbers
Presentation
•
8th - 10th Grade
20 questions
Intro to Slope
Presentation
•
8th - 10th Grade
21 questions
Intro to HTML
Presentation
•
7th - 10th Grade
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
Discover more resources for Computers
32 questions
Unit 3: Intro to App Design (APCSP 22-23, Code.org)
Quiz
•
9th - 12th Grade
30 questions
[AP CSP] Spreadsheets Review
Quiz
•
9th Grade
10 questions
Digital Citizenship: Part 1
Quiz
•
6th - 8th Grade
15 questions
AP CSP - Code.org Unit 3 Review
Quiz
•
9th - 12th Grade
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade