Python Functions Quiz

Python Functions Quiz

10th Grade

13 Qs

quiz-placeholder

Similar activities

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

BÀI TẬP T7 - KHỞI ĐỘNG

BÀI TẬP T7 - KHỞI ĐỘNG

10th - 12th Grade

10 Qs

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

1st Grade - Professional Development

10 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

CLASSROOM

CLASSROOM

10th Grade

10 Qs

CIA Mid-Term Review 1

CIA Mid-Term Review 1

9th - 10th Grade

17 Qs

Một số khái niệm về lập trình và ngôn ngữ lập trình

Một số khái niệm về lập trình và ngôn ngữ lập trình

KG - 12th Grade

15 Qs

Pre-Assessment: ICT 10 Orientation Day

Pre-Assessment: ICT 10 Orientation Day

10th Grade

10 Qs

Python Functions Quiz

Python Functions Quiz

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

William Lugo

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers