Search Header Logo

Python Programming Quiz

Authored by WaiLin Htet

Computers

9th - 12th Grade

Python Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

70 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(10 % 3)?

3

1

0

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to skip the current iteration of a loop?

break

continue

pass

skip

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create a set?

[1, 2, 3]

(1, 2, 3)

{1, 2, 3}

{1:2, 3:4}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(bool(0))?

True

False

0

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method adds an item to a set?

append()

add()

insert()

push()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print("Python".lower())?

PYTHON

python

Python

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for logical AND?

&&

and

||

or

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?