Python Functions and Returns

Python Functions and Returns

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Is it a function?

Is it a function?

Function/Nonfunction

Function/Nonfunction

Function and Function Notation

Function and Function Notation

Function Review

Function Review

Functions Review

Functions Review

Function or No Function

Function or No Function

Is this a function?

Is this a function?

Functions

Functions

Python Functions and Returns

Python Functions and Returns

Assessment

Quiz

Instructional Technology

9th - 12th Grade

Practice Problem

Medium

Created by

Kathleen Mcnamara

Used 26+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will print?

nothing
5
6
an error message

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

How do you correctly call this function

def(1)
x=square( )
defSquare(4)
x=square(5)

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?