Data Structures Quiz

Data Structures Quiz

1st Grade

20 Qs

quiz-placeholder

Similar activities

TMK tahun 6: UNIT 3 PENGHASILAN DAN PENGUJIAN ATUR CARA

TMK tahun 6: UNIT 3 PENGHASILAN DAN PENGUJIAN ATUR CARA

1st - 12th Grade

20 Qs

Lab safety rules and turning on and shutting down the computer

Lab safety rules and turning on and shutting down the computer

1st Grade

15 Qs

Hi am i you are you me

Hi am i you are you me

KG - 12th Grade

15 Qs

Computer Lab Rules

Computer Lab Rules

1st - 6th Grade

19 Qs

Internet Safety

Internet Safety

KG - 3rd Grade

20 Qs

TOPIC 1 : SSK 20193

TOPIC 1 : SSK 20193

1st Grade

15 Qs

Python

Python

KG - 10th Grade

20 Qs

python1

python1

1st - 5th Grade

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?

Discover more resources for Computers