Python Functions Review Flashcard
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

33 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is a return in a function?
Back
Keyword that tells the function what value to send back
2.
FLASHCARD QUESTION
Front
What will be printed? Options: nothing, 5, 6, "3 + 2"
Back
nothing
Answer explanation
No print function is written. You need to print or save the function call.
3.
FLASHCARD QUESTION
Front
What will be printed? Options: nothing, 5, 6, "3 + 2"
Back
5
4.
FLASHCARD QUESTION
Front
What will be printed? Options: nothing, 7, z, 12
Back
12
Answer explanation
9 is returned from the function call with 4 &5. Then 9 is passed with the 3 to the function again with 12 as the return value.
5.
FLASHCARD QUESTION
Front
How many times will Boo print?
Back
4
Answer explanation
range(1,4) starts at 1 and goes to one less than 5. So it runs for 1, 2, 3 & 4. 4 times
6.
FLASHCARD QUESTION
Front
What will print? Options: 1 2, 1, 3, 5
Back
5
Answer explanation
Remember PEMDAS
7.
FLASHCARD QUESTION
Front
Leo wants to create a function that will roll a dice. Which is the correct function definition header?
Back
def diceroll ():
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
Already have an account?
Similar Resources on Wayground
35 questions
Theatre Terminology
Flashcard
•
8th Grade - University
30 questions
Commonly confused words
Flashcard
•
12th Grade
21 questions
Unit 5 Test
Flashcard
•
KG - University
20 questions
Wednesday Wars: March + April
Flashcard
•
KG - University
30 questions
113翰林B1U1
Flashcard
•
10th Grade
20 questions
Translations
Flashcard
•
9th Grade
27 questions
Household Chores and Furniture Vocabulary
Flashcard
•
7th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade