Python Functions and Returns

Flashcard
•
Instructional Technology
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

14 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What will print? Options: nothing, 5, 6, an error message
Back
nothing
2.
FLASHCARD QUESTION
Front
What does the following code output? Options: 11, 9; 16, 16; None, None; 225, 117
Back
11, 9
3.
FLASHCARD QUESTION
Front
Which of the following is the correct code to define a function? Options: def area ( ):, area ( ), def area:, def area ( )
Back
def area ( ):
4.
FLASHCARD QUESTION
Front
How do you correctly call this function? Options: def(1), x=square( ), defSquare(4), x=square(5)
Back
x=square(5)
5.
FLASHCARD QUESTION
Front
Which keyword marks a spot in a function where the program flow will go back to the calling code? Options: break, return, continue, jump
Back
return
6.
FLASHCARD QUESTION
Front
Which of the following statements correctly defines a function named "haunted" that takes a parameter named "apple"? Options: haunted(apple), haunted, def haunted(apple):, apple
Back
def haunted(apple):
7.
FLASHCARD QUESTION
Front
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)
Back
return EEK
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Basic Engine Parts Entry Flashcard

Flashcard
•
10th - 12th Grade
13 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
10 questions
Flashcard 2: Angle Addition Postulate

Flashcard
•
9th - 12th Grade
7 questions
Intro to Python Project Stem Unit 7 Flashcards

Flashcard
•
9th - 12th Grade
9 questions
Google Sheets Flashcard 3

Flashcard
•
9th - 12th Grade
10 questions
Similar Polygons

Flashcard
•
9th - 12th Grade
10 questions
Week 5 Vocab 18-19 Pics & Context

Flashcard
•
9th - 12th Grade
10 questions
Similar Polygons

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Instructional Technology
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade