Python Functions Review Flashcard

Flashcard
•
Computers
•
9th - 12th Grade
•
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
Similar Resources on Wayground
29 questions
AP CSP - Code.org Unit 3 Review

Flashcard
•
9th - 12th Grade
30 questions
2024-2025 Fundamentals of Computing Final

Flashcard
•
9th - 12th Grade
28 questions
Units 1 to 6: Mock Exam Final - AP Computer Science A

Flashcard
•
9th - 12th Grade
25 questions
VEX parts

Flashcard
•
9th - 12th Grade
24 questions
Python Loops

Flashcard
•
9th - 12th Grade
30 questions
Unit 5 AP CSP Code.org

Flashcard
•
9th - 12th Grade
28 questions
AP CSP Unit 3 Review (code.org)

Flashcard
•
10th - 12th Grade
23 questions
Intro to CS - Unit 3 Review (Functions)

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Introduction to Desktop Computer Systems

Quiz
•
9th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Computer Hardware and Input/Output Devices

Interactive video
•
6th - 10th Grade