Python Functions and Returns

Flashcard
•
Instructional Technology
•
9th - 12th Grade
•
Hard
Wayground 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
10 questions
Similar Polygons

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

Flashcard
•
9th - 12th Grade
13 questions
Functions and Parameters

Flashcard
•
9th - 12th Grade
11 questions
Function in Python

Flashcard
•
KG
7 questions
Intro to Python Project Stem Unit 7 Flashcards

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
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

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

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade