Data Structures Quiz

Data Structures Quiz

1st Grade

20 Qs

quiz-placeholder

Similar activities

الفاقد في البرمجة

الفاقد في البرمجة

1st - 3rd Grade

20 Qs

Year 3 Baseline

Year 3 Baseline

1st - 2nd Grade

16 Qs

Pengenalan Dasar Wordpress

Pengenalan Dasar Wordpress

1st Grade

15 Qs

ESOL Training with Sr. Paine

ESOL Training with Sr. Paine

KG - University

20 Qs

EV3 Programming

EV3 Programming

1st Grade - University

20 Qs

ÔN TIN HKII LỚP 5 TVD

ÔN TIN HKII LỚP 5 TVD

1st - 5th Grade

15 Qs

Kiểm tra bài cũ

Kiểm tra bài cũ

1st Grade

15 Qs

Aplikom

Aplikom

1st Grade - University

20 Qs

Data Structures Quiz

Data Structures Quiz

Assessment

Quiz

Computers

1st Grade

Practice Problem

Medium

Created by

Adham Elmuntser

Used 1+ 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 data structure is immutable?

List

Set

Tuple

Dictionary

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure allows duplicate elements?

Set

Dictionary

Tuple

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the first element of a list named my_list?

my_list{0}

my_list[0]

my_list(0)

my_list.0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure does not allow duplicate elements?

List

Tuple

Set

Dictionary

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you add an item to a set named my_set?

my_set.add(7)

my_set.append(7)

my_set.insert(7)

my_set[7] = None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of print(len({1, 2, 2, 3}))?

2

3

4

1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement will raise a TypeError when executed?

my_list.append(6)

my_set.add(6)

my_tuple[0] = 100

my_dict['b'] = 20

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?