Lesson 43 - Dictionary Datatype 1

Lesson 43 - Dictionary Datatype 1

5th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

CU06 APPETIZER

CU06 APPETIZER

7th - 8th Grade

10 Qs

DL Refresher

DL Refresher

KG - Professional Development

10 Qs

Uso de la X

Uso de la X

4th - 5th Grade

12 Qs

SISTEM EKSKRESI MANUSIA

SISTEM EKSKRESI MANUSIA

7th - 12th Grade

10 Qs

IKATAN DAN BALUTAN

IKATAN DAN BALUTAN

1st - 10th Grade

13 Qs

Atividade de Língua Portuguesa 6º e 7º ano

Atividade de Língua Portuguesa 6º e 7º ano

6th Grade

10 Qs

Projekt "Jem zdrowo i kolorowo"

Projekt "Jem zdrowo i kolorowo"

3rd - 8th Grade

10 Qs

 Educação Financeira

Educação Financeira

8th Grade

12 Qs

Lesson 43 - Dictionary Datatype 1

Lesson 43 - Dictionary Datatype 1

Assessment

Quiz

Professional Development, Education

5th - 8th Grade

Medium

Created by

NotchUp .co

Used 24+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not true ?

set can have a element multiple times.

tuple is mutable

dictionary is set of key value pair

All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following way is used to add elements to the dictionary ?

a['1']=30

a['22.5']=40

a['rohit']=25

All of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which of the following statement is true ?

Dictionary can have same value multiple times with unique keys

Dictionary can have same key multiple times with unique values

Dictionary is immutable in nature

none

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a={'rohit': 70, 'rahul': 100, 'rohan': 80}

From above dictioary 100 can be accessed by -

a['rahul']

a['1']

a['rahul'] and a.get("rahul")

none

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of following code ?

x={'rohit': 20, 'rahul': 25, 'rohan': 30}

for i in x:

print(i)

rohit

rahul

rohan

20

25

30

rohit:20

rahul:25

rohan:30

none

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code -

x={'rohit': 20, 'rahul': 25, 'rohan': 30}

for i in x.values():

print(i)

rohit

rahul

rohan

20

25

30

rohit 20

rahul 25

rohan 30

none

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code ?

x={'rohit': 20, 'rahul': 25, 'rohan': 30}

for x, y in x.items():

print(x, y)

rohit

rahul

rohan

20

25

30

rohit 20

rahul 25

rohan 30

none

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?