
dictionary
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Shiwen Zhang
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下哪个选项是一个字典
x = ('apple', 'banana', 'cherry')
x = {'type' : 'fruit', 'name' : 'banana'}
x = ['apple', 'banana', 'cherry']
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
词典创建后,词典条目就无法删除。
对
错
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
字典不能有两个同名的键。
对
错
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
您可以通过引用键名来访问字典项。
对
错
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
使用该get方法打印字典中“model”键的值car。
car = { "brand": "Ford", "model": "Mustang", "year": 1964 }
print(_________)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
考虑以下代码:打印结果是什么?
x = {'type' : 'fruit', 'name' : 'banana'}
print(x['type'])
banana
fruit
type = 'fruit'
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
考虑以下代码
x = {'type' : 'fruit', 'name' : 'banana'}
哪个代码可以把fruit改为berry
x{'type'} = 'berry'
x['type'] = 'berry'
x.get('type') = 'berry'
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
14 questions
网络与通讯2
Quiz
•
10th Grade - University
17 questions
第七章 CSS入门
Quiz
•
University
19 questions
資料庫期末題庫
Quiz
•
University
12 questions
【速成輸入法】複習
Quiz
•
KG - University
12 questions
RBT 5年级
Quiz
•
5th Grade - University
20 questions
IT用語集 総合テスト2
Quiz
•
University
11 questions
初二-資訊科技-主記憶體及輔助存貯設備-多選-newest
Quiz
•
University
11 questions
第一节课
Quiz
•
University
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
Identifying equations
Quiz
•
KG - University
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
HS2C2 AB QUIZIZZ
Quiz
•
1st Grade - Professio...
14 questions
Homonyms Quiz
Quiz
•
KG - University
16 questions
Parts of a Parabola
Quiz
•
8th Grade - University
10 questions
A Brief History of Geologic Time
Interactive video
•
11th Grade - University
15 questions
Black Friday/Cyber Monday
Quiz
•
9th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
