Search Header Logo

Python Data Structures

Authored by OL SAY

Computers

University

Used 16+ times

Python Data Structures
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is a list?

2, 3, -5, 4

{2, 3, -5, 4}

[2, 3, -5, 4]

(2, 3, -5, 4)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is a set?

2, 3, -5, 4

(2, 3, -5, 4)

{2, 3, -5, 4}

[2, 3, -5, 4]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is a tuple?

(2, 3, -5, 4)

[2, 3, -5, 4]

{2, 3, -5, 4}

{"0":2, "1":3, "2":-5, "3":4}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is a dictionary?

{2, 3, -5, 4}

[2, 3, -5, 4]

(2, 3, -5, 4)

{"a":2, "b":3, "c":-5, "d":4}

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Select all the methods to create a list.

a = [-2, 4, 5, 3]

a = list([-2, 4, 5, 3])

a = (-2, 4, 5, 3)

a = tuple([-2, 4, 5, 3])

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Select all the methods to create a list.

a = [-2, 4, 5, 3]

a = list([-2, 4, 5, 3])

a = (-2, 4, 5, 3)

a = tuple([-2, 4, 5, 3])

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Select all the methods to create a tuple.

a = (-2, 4, 5, 3)

a = list([-2, 4, 5, 3])

a = [-2, 4, 5, 3]

a = tuple([-2, 4, 5, 3])

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?

Discover more resources for Computers