Search Header Logo

python2-lesson08

Authored by hang zheng

Computers

2nd - 12th Grade

Used 85+ times

python2-lesson08
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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()

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?