Data Structures Quiz

Data Structures Quiz

1st Grade

20 Qs

quiz-placeholder

Similar activities

Pyhton- hàm

Pyhton- hàm

1st - 12th Grade

22 Qs

Data Structure and Algorithm

Data Structure and Algorithm

1st - 3rd Grade

15 Qs

Scratch Coding

Scratch Coding

1st - 5th Grade

15 Qs

Secure Passwords

Secure Passwords

KG - 12th Grade

17 Qs

Penilaian Materi MySQL

Penilaian Materi MySQL

1st Grade

20 Qs

editing and styling

editing and styling

KG - 12th Grade

17 Qs

Starting email

Starting email

1st - 2nd Grade

19 Qs

QUIS LIST

QUIS LIST

1st - 12th Grade

15 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?