Search Header Logo
Learn Python Functions

Learn Python Functions

Assessment

Interactive Video

Computers

12th Grade

Practice Problem

Easy

Created by

Nicol Sutherland

Used 9+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of a function?

To create variables

To perform a specific task

To store data

To print text

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the return statement indicate?

return <expression>

The transfer back to the None value

The test for the presence or absence of some property (True/False)

An entry point for a script

The end of the function or exit point

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is defining a function not enough?

We also need to multiply its argument

We also need to call it

We also need to compute the function

We also need a number value parameter

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What parameters were in the about_me function?

last_name, gamer_tag, level

name, profession, pet

fish, gills, fins

flower_type, color, water_usage

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to define a function in Python?

func

def

define

function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are parameters in a function?

Names of the function

Placeholders for arguments

Types of data

Values returned by the function

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What colors will be returned in a tuple?

red, green, blue

red, yellow, orange

blue, yellow, orange

black, red, blue

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

Already have an account?