PYTHON DATA STRUCTURES

PYTHON DATA STRUCTURES

University

15 Qs

quiz-placeholder

Similar activities

Impuesto a la Renta

Impuesto a la Renta

University

16 Qs

DISEASES & DISORDERS #1

DISEASES & DISORDERS #1

7th Grade - University

12 Qs

3.17 PENILAIAN HASIL MOCK-UP ATAU MODEL

3.17 PENILAIAN HASIL MOCK-UP ATAU MODEL

7th Grade - University

10 Qs

Tax Goes to School

Tax Goes to School

University

15 Qs

Introduction to Hemostasis Quiz 1

Introduction to Hemostasis Quiz 1

University

20 Qs

ÔN TẬP Chương 4: Dân chủ XHCN và nhà nước XHCN

ÔN TẬP Chương 4: Dân chủ XHCN và nhà nước XHCN

University

15 Qs

Discounted Room rates

Discounted Room rates

University

10 Qs

Labor Relations and Negotations 1

Labor Relations and Negotations 1

University - Professional Development

15 Qs

PYTHON DATA STRUCTURES

PYTHON DATA STRUCTURES

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

Arjun Kulshrestha

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

my_list = [1, 2, 3, 4, "This is a String", "1"]

print(my_list[2])

What will be the output of the above code?

3

4

Error

This is a String

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

my_tuple = (5, 10, 15, 20)

print(len(my_tuple))

What will be the output of the above code?

4

10

15

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

my_dict = {"apple": 3, "banana": 5, "orange": 2}

print(my_dict["banana"])

What will be the output of the above code?

3

5

2

"banana"

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

my_set = {1, 2, 3, 4, 5}

my_set.add(6)

print(my_set)

What will be the output of the above code?

a) {1, 2, 3, 4, 5, 6}

b) {1, 2, 3, 4, 5}

{6}

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

my_list = [1, 2, 3, 4, 5]

my_list.remove(3)

print(my_list)

a) [1, 2, 4, 5]

b) [1, 2, 3, 4, 5]

c) [1, 2, 4]

d) Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

my_tuple = (10, 20, 30, 40, 50)

print(my_tuple[-2])

What will be the output of the above code?

30

40

20

50

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

my_dict = {"apple": 3, "banana": 5, "orange": 2}

print("grape" in my_dict)

What will be the output of the above code?

"grape"

False

True

Error

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?