dictionary

dictionary

University

16 Qs

quiz-placeholder

Similar activities

20190116巴赫體驗活動

20190116巴赫體驗活動

4th Grade - University

14 Qs

zsTest3

zsTest3

KG - University

15 Qs

速成輸入法 – 輔助字型1

速成輸入法 – 輔助字型1

KG - University

14 Qs

CPDAS1091-Survey

CPDAS1091-Survey

University

13 Qs

Part 0 专业英语翻译方法

Part 0 专业英语翻译方法

University

12 Qs

Laugh Laundry

Laugh Laundry

University

12 Qs

软件工程 - 作业 3

软件工程 - 作业 3

University

20 Qs

ict_f4_ch16_networkconnect

ict_f4_ch16_networkconnect

10th Grade - University

19 Qs

dictionary

dictionary

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Shiwen Zhang

FREE Resource

AI

Enhance your content in a minute

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

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

以下哪个选项是一个字典

x = ('apple', 'banana', 'cherry')

x = {'type' : 'fruit', 'name' : 'banana'}

x = ['apple', 'banana', 'cherry']

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

词典创建后,词典条目就无法删除。

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

字典不能有两个同名的键。

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

您可以通过引用键名来访问字典项。

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

使用该get方法打印字典中“model”键的值car。

car = { "brand": "Ford", "model": "Mustang", "year": 1964 }

print(_________)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

考虑以下代码:打印结果是什么?

x = {'type' : 'fruit', 'name' : 'banana'}
print(x['type'])

banana

fruit

type = 'fruit'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

考虑以下代码

x = {'type' : 'fruit', 'name' : 'banana'}

哪个代码可以把fruit改为berry

x{'type'} = 'berry'

x['type'] = 'berry'

x.get('type') = 'berry'

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