Python Functions and Returns

Python Functions and Returns

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Electronic Communication

Electronic Communication

10th - 11th Grade

14 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

computational thinking - test - M1

computational thinking - test - M1

7th - 9th Grade

10 Qs

Quiz: Motherboard

Quiz: Motherboard

3rd Grade - University

10 Qs

Drawing Instruments

Drawing Instruments

9th Grade

15 Qs

Parts of the Fusion 360 UI

Parts of the Fusion 360 UI

12th Grade

15 Qs

Digital Footprint & Passwords

Digital Footprint & Passwords

4th Grade - University

15 Qs

College Admission

College Admission

9th - 12th Grade

15 Qs

Python Functions and Returns

Python Functions and Returns

Assessment

Quiz

Instructional Technology

9th - 12th Grade

Medium

Created by

Kathleen Mcnamara

Used 25+ 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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Instructional Technology