
python2-lesson08
Quiz
•
Computers
•
2nd - 12th Grade
•
Practice Problem
•
Medium
hang zheng
Used 85+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
我是小導演影音剪輯L1~L3
Quiz
•
5th - 6th Grade
10 questions
四年級中文打字期末評量
Quiz
•
4th Grade
11 questions
2024年编程语言总结
Quiz
•
9th - 12th Grade
10 questions
Scratch小測驗1
Quiz
•
1st - 5th Grade
10 questions
0610-Microbit
Quiz
•
9th - 12th Grade
10 questions
emma
Quiz
•
1st - 11th Grade
15 questions
電腦病毒大作戰
Quiz
•
3rd Grade
10 questions
顺序结构复习
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
