Python 05 Dictionary/2D List

Python 05 Dictionary/2D List

4th - 8th Grade

15 Qs

quiz-placeholder

Similar activities

Food Quiz

Food Quiz

8th Grade

15 Qs

Year 7 Healthy Foods Quiz

Year 7 Healthy Foods Quiz

7th Grade

14 Qs

Fruits Veggies and Other Plants

Fruits Veggies and Other Plants

7th - 12th Grade

19 Qs

Fruits and Vegetables

Fruits and Vegetables

KG - University

16 Qs

Fruit vs Vegetable

Fruit vs Vegetable

5th - 6th Grade

20 Qs

Fruits and Vegetable

Fruits and Vegetable

4th Grade

10 Qs

Autumn Vocabulary

Autumn Vocabulary

6th Grade

12 Qs

I've got / I haven't got

I've got / I haven't got

1st - 6th Grade

12 Qs

Python 05 Dictionary/2D List

Python 05 Dictionary/2D List

Assessment

Quiz

Other

4th - 8th Grade

Hard

Created by

codeJuniors codeJuniors

Used 11+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

#How to you define an empty dictionary called myDict

myDict = " "

myDict = 0

myDict = [ ]

myDict = { }

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

#Which is the key and value

car = {"Brand" : "BMW"}

Key: Brand. Value: BMW

Key BMW, Value: Brand

{"Brand" : "BMW"}

"Brand" : "BMW"

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

#Can the keys in a dictionary be the same name?

Yes

No

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

#What is the output?

3

a,b,c

amt,bull,cow

6

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

#What is the output?

"A", "B", "C"

"Apple", "Banana","Carrot"

"A": "Apple", "B": "Banana", "C":"Carrot"

Error

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

#What is the output?

"Apple", "Banana", "Carrot"

"A","B","C"

"A": "Apple", "B": "Banana", "C":"Carrot"

Error

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

#How to print "Apple"


myDict = {"A": "Apple", "B": "Banana", "C":"Carrot"}

print(myDict["A"])

print(myDict[0])

print(myDict{0})

print(myDict{"A"})

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?