Python Functions

Python Functions

9th Grade

20 Qs

quiz-placeholder

Similar activities

Python basics

Python basics

9th - 12th Grade

16 Qs

Objects

Objects

8th - 12th Grade

16 Qs

Python Functions

Python Functions

9th Grade

18 Qs

Functions in Python

Functions in Python

9th - 12th Grade

16 Qs

Python turtle

Python turtle

8th - 9th Grade

20 Qs

Python Classes Quiz

Python Classes Quiz

9th - 12th Grade

15 Qs

Functions in Python

Functions in Python

9th - 12th Grade

15 Qs

Python Basics Quiz

Python Basics Quiz

6th - 10th Grade

15 Qs

Python Functions

Python Functions

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Sarbagya Malla

Used 345+ times

FREE Resource

20 questions

Show all answers

1.

OPEN ENDED QUESTION

30 sec • 1 pt

Media Image

Which two (2) lines of code will print when this function is called?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

30 sec • 1 pt

Media Image

What is the name of the function?

Evaluate responses using AI:

OFF

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When defining a function, the definition must occur before it is called.

true

false

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
What will print?
nothing
5
6
an error message

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code output?

11, 9

16, 16

None, None

225, 117

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the line of code:

Label('Go Team', 200, 100)

What is the Label?

argument

parameter

function name

7.

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 ( )

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?