
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
12 questions
第3回:2進数の足し算/引き算
Quiz
•
University
14 questions
電腦與網際網路知識測驗
Quiz
•
University
14 questions
速成輸入法 – 輔助字型1
Quiz
•
KG - University
12 questions
Laugh Laundry
Quiz
•
University
19 questions
ict_f4_ch16_networkconnect
Quiz
•
10th Grade - University
14 questions
COMM14題目
Quiz
•
University
20 questions
軟體定義網路 (SDN) 控制器與交換器運作機制測驗
Quiz
•
University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
