Python Functions

Python Functions

9th Grade

20 Qs

quiz-placeholder

Similar activities

APCSP Semester Review

APCSP Semester Review

8th - 9th Grade

20 Qs

Python Functions

Python Functions

9th Grade

18 Qs

Python turtle year 8 assessment

Python turtle year 8 assessment

7th - 9th Grade

20 Qs

2.3 Defensive Design  - Lesson 3 Subprograms

2.3 Defensive Design - Lesson 3 Subprograms

8th - 10th Grade

20 Qs

Python basics

Python basics

9th - 12th Grade

16 Qs

Objects

Objects

8th - 12th Grade

16 Qs

Python - Karel the Dog

Python - Karel the Dog

9th - 12th Grade

16 Qs

Subroutines - Procedures

Subroutines - Procedures

9th - 10th Grade

16 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?