Data Structures Quiz

Data Structures Quiz

1st Grade

20 Qs

quiz-placeholder

Similar activities

FinalTest

FinalTest

1st - 2nd Grade

15 Qs

Understanding Python

Understanding Python

1st Grade

20 Qs

Pemrograman 2

Pemrograman 2

1st Grade

25 Qs

Parts of Computer, Terms and Cybersecurity

Parts of Computer, Terms and Cybersecurity

1st - 5th Grade

16 Qs

Python Programming Quiz

Python Programming Quiz

1st Grade

20 Qs

Conocimientos Básicos de Python

Conocimientos Básicos de Python

1st Grade

15 Qs

Data Structures Quiz

Data Structures Quiz

1st Grade

20 Qs

Season 1 #Spaic Python Weekly Quiz

Season 1 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Data Structures Quiz

Data Structures Quiz

Assessment

Quiz

Computers

1st Grade

Medium

Created by

Adham Elmuntser

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?