Search Header Logo

python dictionary and set

Authored by Assistant Chennai

Professional Development

Professional Development

Used 166+ times

python dictionary and set
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The code snippet above outputs

error

None

NaN

-1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The code above prints

Math

Physics

Chemistry

English

4

3.8

3.6

3.7

None

None

None

None

NaN

NaN

NaN

NaN

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the program above

e

y

t

g

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The output of the code above is

[101, 102, 103, 104]

[3.6, 3.7, 3.8, 4]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the code above

[3.6, 3.7, 3.8, 4]

[101, 102, 103, 104]

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Which of the following code deletes the key 103 and its value

del grades[103]

grades.pop(103)

del grades["103"]

grades.pop("103")

Media Image

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Square brackets in an assignment statement will create which type of data structure?

( s=[] )

List

Queue

Dictionary

Set

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?