
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
12 questions
Python_基礎觀念

Quiz
•
9th Grade
12 questions
S07.2 常见的应用软体

Quiz
•
10th Grade
10 questions
2122 T1 P2 CS Revision

Quiz
•
2nd Grade
15 questions
資訊課1-3課測驗

Quiz
•
1st - 5th Grade
10 questions
資訊科技之價值觀教育

Quiz
•
6th Grade
15 questions
AP First Semester Study Guide Page 2

Quiz
•
9th Grade
12 questions
Hello World!

Quiz
•
1st - 3rd Grade
10 questions
Scratch 交換

Quiz
•
8th 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