Python Functions Quiz

Python Functions Quiz

10th Grade

13 Qs

quiz-placeholder

Similar activities

Python Programming: Functions and Procedures

Python Programming: Functions and Procedures

9th - 11th Grade

12 Qs

Exploring Python: Input and Output Essentials

Exploring Python: Input and Output Essentials

9th Grade - University

10 Qs

J277 - 10QQ - Basic Python 1

J277 - 10QQ - Basic Python 1

8th - 10th Grade

10 Qs

Python Review KS3

Python Review KS3

9th - 12th Grade

17 Qs

python intro

python intro

4th - 12th Grade

17 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Python Casting and Input

Python Casting and Input

8th - 11th Grade

15 Qs

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

Python Functions Quiz

Python Functions Quiz

Assessment

Quiz

Computers

10th Grade

Medium

Created by

William Lugo

Used 10+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Python function always returns a value

True

False

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the following code?

15

SyntaxError

(5,10)

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Select which is true for Python function

A Python function can return only a single value

A function can take an unlimited number of arguments.

A Python function can return multiple values

Python function doesn’t return anything unless and until you add a return statement

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the following function call

5

15

(15,5)

SyntaxError

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output?

15

8

(8,7)

SyntaxError

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output

25

NameError

5

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Select which true for Python function

A function is a code block that only executes when called and always returns a value.

A function only executes when it is called and we can reuse it in a program

Python doesn’t support nested function

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?