
dictionary

Quiz
•
Computers
•
University
•
Hard

Shiwen Zhang
FREE Resource
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
Similar Resources on Wayground
20 questions
2023.09——Python基础语法

Quiz
•
University
17 questions
Python Lists Quiz

Quiz
•
University
12 questions
RBT 5年级

Quiz
•
5th Grade - University
12 questions
untitled

Quiz
•
4th Grade - University
17 questions
第七章 CSS入门

Quiz
•
University
16 questions
大数据采集

Quiz
•
University
21 questions
第十章 div和span

Quiz
•
University
14 questions
网络与通讯2

Quiz
•
10th Grade - University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University