python2-lesson08

python2-lesson08

2nd - 12th Grade

10 Qs

quiz-placeholder

Similar activities

J10.3 网络的类型

J10.3 网络的类型

8th Grade

11 Qs

课堂测试与评价——第9课 修改文章中的错误

课堂测试与评价——第9课 修改文章中的错误

1st - 5th Grade

10 Qs

01-01

01-01

10th Grade

11 Qs

TMK Y5 2019 UNIT 1A

TMK Y5 2019 UNIT 1A

5th Grade

12 Qs

Form 1

Form 1

9th Grade

11 Qs

AI與創造它的科學家

AI與創造它的科學家

7th - 9th Grade

6 Qs

TP-Link Deco X95 網路知識小測驗!

TP-Link Deco X95 網路知識小測驗!

1st Grade - Professional Development

8 Qs

5年级设计与工艺:单元3 我是小创客(1)

5年级设计与工艺:单元3 我是小创客(1)

5th Grade

9 Qs

python2-lesson08

python2-lesson08

Assessment

Quiz

Computers

2nd - 12th Grade

Medium

Created by

hang zheng

Used 83+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

在字典中,每个键的值都是唯一的,不可能有重复的键

True

False

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

在字典中,每个值都是唯一的,不可能具有相同的值

True

False

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

运行上图中的代码,最后的输出结果是?

102:小明的家

小明的家

102:小红的家

小红的家

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

a={108:“小明的家”,126:“小红的家"},现在想将键为108的值修改为烈烈的家,下列代码正确的是?

a[126]="烈烈的家"

a[108]="烈烈的家"

a="烈烈的家"

a["烈烈的家"]=108

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

b={1,2,4,5,6},变量b是一个?

元组

列表

字典

集合

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

a={1,1,2,2,3,4}

print(a)

最后输出的结果是?

{1,2,3,4}

{1,1,2,2,3,4}

1,2,3,4

1,1,2,2,3,4

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

已知a是一个字典,现在想要清空a中的所有元素,下列代码正确的是?

a.pop()

a.clear()

a.clean()

a.remove()

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?