Что такое Dictionary в Python?

Викторина по словарям и множествам в Python

Quiz
•
Computers
•
11th Grade
•
Hard
Камила Жусипбек
Used 2+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Неизменяемый тип данных
Тип данных, хранящий только уникальные значения
Индексиируемый объект
Тип данных, хранящий связку key:value
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как создать пустой словарь?
d = frozenset()
d = set()
d = []
d = dict()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как добавить новый элемент в словарь?
d.insert('new_key', 'value')
d.add('new_key', 'value')
d['new_key'] = 'value'
d.append('new_key', 'value')
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как получить доступ к ключам словаря?
keys = d.values()
keys = d.items()
keys = d.pairs()
keys = d.keys()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что такое Set в Python?
Неизменяемый тип данных
Индексиируемый объект
Тип данных, хранящий только уникальные значения
Тип данных, хранящий пары ключ-значение
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как создать множество с элементами?
s = set('value1', 'value2')
s = []
s = dict()
s = {'value1', 'value2', 'value3'}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как проверить наличие элемента в множестве?
s.has(element)
s.contains(element)
element in s
element.exists(s)
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Сортировка данных

Quiz
•
9th - 12th Grade
18 questions
Искусственный интеллект

Quiz
•
11th Grade
12 questions
Методы множеств

Quiz
•
11th Grade
15 questions
Bat-файлы

Quiz
•
11th Grade
13 questions
Локальные сети

Quiz
•
10th - 11th Grade
13 questions
Authorisation, Authentication, Encryption and Hashing - RU

Quiz
•
11th Grade
10 questions
Устройство компьютера

Quiz
•
7th Grade - University
14 questions
Викторина по типам данных множество

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University