Python Functions

Python Functions

9th Grade

20 Qs

quiz-placeholder

Similar activities

Hangman Game - Programming Questions

Hangman Game - Programming Questions

7th - 11th Grade

15 Qs

Python

Python

6th - 10th Grade

17 Qs

CodeHS Karel Python

CodeHS Karel Python

9th - 12th Grade

16 Qs

APCSP Semester Review

APCSP Semester Review

8th - 9th Grade

20 Qs

mod 4 test

mod 4 test

9th - 12th Grade

22 Qs

Subroutines

Subroutines

9th - 11th Grade

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

Python Functions

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Sarbagya Malla

Used 353+ 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?