Python - Quiz

Python - Quiz

Professional Development

20 Qs

quiz-placeholder

Similar activities

Harry Potter

Harry Potter

KG - Professional Development

15 Qs

Basics _ 8051MC

Basics _ 8051MC

Professional Development

15 Qs

Mgt Quiz

Mgt Quiz

Professional Development

15 Qs

1.5 GSC reviewer

1.5 GSC reviewer

Professional Development

15 Qs

World Water Day 2024

World Water Day 2024

Professional Development

15 Qs

GBG Week 1 Assessment Review

GBG Week 1 Assessment Review

Professional Development

15 Qs

SBJ Berpacu Dalam Melodi

SBJ Berpacu Dalam Melodi

Professional Development

20 Qs

Python - Quiz

Python - Quiz

Assessment

Quiz

Other

Professional Development

Practice Problem

Hard

Created by

Joel Soloman

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to create an empty list in Python?

list = []

list = {}

list = ()

list = [None]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code snippet?

"py"

"th"

"tho"

"ho"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression 2 ** 3?

8

6

2

12

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the " != " operator represent in Python?

Less than or equal to

Equal to

Not equal to

Greater than or equal to

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code snippet?

2.0

2.5

2

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'len()' function return when applied to a string in Python?

The number of characters in the string

The first character of the string

The last character of the string

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is unordered in Python?

List

Dictionary

Set

Tuple

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?