Python Functions and Returns

Quiz
•
Instructional Technology
•
9th - 12th Grade
•
Medium
Kathleen Mcnamara
Used 25+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code output?
11, 9
16, 16
None, None
225, 117
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct code to define a function?
def area ( ):
area ( )
def area:
def area ( )
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword marks a spot in a function where the program flow will go back to the calling code?
break
return
continue
jump
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements correctly defines a function named "haunted" that takes a parameter named "apple"?
haunted(apple)
haunted
def haunted(apple):
apple
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements will successfully send the value "EEK" back from a function to the calling code?
EEK
return EEK
back EEK
#print(EEK)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
EXIT TICKET

Quiz
•
9th - 12th Grade
18 questions
Algorithms and Computer Science

Quiz
•
6th - 9th Grade
16 questions
M05 - Estruturas de Dados Python

Quiz
•
10th Grade - University
10 questions
Funzioni in PHP

Quiz
•
12th Grade
9 questions
CNC - T3 - W1 - M13

Quiz
•
12th Grade
10 questions
B27.2-Tin10

Quiz
•
12th Grade
15 questions
Quiz de JavaScript para Iniciantes

Quiz
•
10th Grade
15 questions
Empowerment Technology Online Quiz

Quiz
•
11th 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