Search Header Logo

Python Functions Quiz

Authored by Edelawit Abebe

Information Technology (IT)

12th Grade

Python Functions Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

44 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What is a function in Python?

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to create a function?

def

function

create

method

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of rocket_parts()?

payload, propellant, structure

error

None

payload

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the any() function do?

Checks if any item is True

Checks if all items are True

Returns the first item

Counts items

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if you call any() without arguments?

It will return True

It will raise an exception

It will return False

It will return None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of distance_from_earth('Moon')?

238,855

Unable to compute to that destination

Error

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of days_to_complete(238855, 75)?

132.69

133

Error

None

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

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

Already have an account?