Learn Python Functions

Learn Python Functions

Assessment

Interactive Video

Computers

12th Grade

Easy

Created by

Nicol Sutherland

Used 3+ 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

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?