Python Functions and Returns
Quiz
•
Instructional Technology
•
9th - 12th Grade
•
Medium
Kathleen Mcnamara
Used 25+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
13 questions
R038 Engineering Design Topic 1.1 - Design Strategies
Quiz
•
11th Grade
18 questions
Figuras Ocultas
Quiz
•
8th - 12th Grade
13 questions
IC3 GS6 Level 1 Domain 6 Assessment
Quiz
•
6th - 12th Grade
14 questions
Media and Information Language
Quiz
•
11th - 12th Grade
17 questions
IC3 GS6 Domain 4 Assessment
Quiz
•
6th - 12th Grade
16 questions
Hazard Communication Quiz
Quiz
•
12th Grade
10 questions
Year 8 Health and Safety Quiz
Quiz
•
8th - 11th Grade
12 questions
Nuclear Energy
Quiz
•
7th - 10th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
