python2-lesson08

python2-lesson08

2nd - 12th Grade

10 Qs

quiz-placeholder

Similar activities

六年级 错别字

六年级 错别字

4th - 6th Grade

10 Qs

认识电脑(2011~2018年)

认识电脑(2011~2018年)

6th - 8th Grade

15 Qs

2020 Excel上半年复习

2020 Excel上半年复习

10th Grade

12 Qs

Kooltech Scratch

Kooltech Scratch

5th - 9th Grade

10 Qs

应用窗体编辑数据库

应用窗体编辑数据库

5th Grade

10 Qs

西方美术史

西方美术史

9th Grade

7 Qs

台中市三年級資訊2-02數位學習高手-02數位學習停看聽

台中市三年級資訊2-02數位學習高手-02數位學習停看聽

3rd - 6th Grade

10 Qs

AI

AI

7th - 9th Grade

10 Qs

python2-lesson08

python2-lesson08

Assessment

Quiz

Computers

2nd - 12th Grade

Medium

Created by

hang zheng

Used 80+ 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?

Discover more resources for Computers