
python2-lesson08

Quiz
•
Computers
•
2nd - 12th Grade
•
Medium

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
运行上图中的代码,最后的输出结果是?
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
Similar Resources on Wayground
9 questions
4年级设计与工艺单元6电脑编程,我最行

Quiz
•
4th Grade
7 questions
網路世界真有趣

Quiz
•
3rd - 4th Grade
6 questions
平面设计

Quiz
•
9th Grade
10 questions
台中市三年級資訊2-01瀏覽器的使用-01悠遊地球村

Quiz
•
3rd - 4th Grade
8 questions
9上2-1認識半導體

Quiz
•
7th - 9th Grade
13 questions
認識micro:bit

Quiz
•
3rd - 6th Grade
10 questions
常識 4B冊 第六課 網絡通訊與安全

Quiz
•
4th Grade
10 questions
台中市三年級資訊2-02數位學習高手-02數位學習停看聽

Quiz
•
3rd - 6th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
25 questions
Exploring POV and Unreliable Narrators

Quiz
•
7th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)

Quiz
•
9th Grade
15 questions
MLA Formatting

Quiz
•
9th Grade
20 questions
Typing Practice

Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
16 questions
4.2 Private & Personal Information

Lesson
•
4th Grade