python2-lesson08

python2-lesson08

2nd - 12th Grade

10 Qs

quiz-placeholder

Similar activities

网络与通讯

网络与通讯

11th Grade

10 Qs

scratch

scratch

6th Grade

15 Qs

算法与伪代码

算法与伪代码

4th Grade

10 Qs

2022年第二届苏州软件比武大赛—热身题

2022年第二届苏州软件比武大赛—热身题

2nd Grade

10 Qs

11101八年級期末考

11101八年級期末考

8th Grade

11 Qs

初識Scratch

初識Scratch

5th Grade

10 Qs

0610- Python

0610- Python

9th - 10th Grade

10 Qs

scratch终极大挑战

scratch终极大挑战

6th Grade

8 Qs

python2-lesson08

python2-lesson08

Assessment

Quiz

Computers

2nd - 12th Grade

Practice Problem

Medium

Created by

hang zheng

Used 85+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?