
Python Словники
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Olga Maksimenko
Used 4+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Які основні методи можна використовувати зі словниками в Python?
Отримання значення за ключем, додавання нової пари ключ-значення, видалення пари ключ-значення, перевірка наявності ключа, отримання списку ключів, отримання списку значень, отримання списку пар ключ-значення
Створення нового словника
Оновлення значення за ключем
Видалення всіх пар ключ-значення
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Наведіть приклади використання словників у Python.
data = {'key': 'value'}
user = {'name': 'John', 'age': 30}
person = {'first_name': 'Jane', 'last_name': 'Doe'}
user = {'name': 'Alice', 'age': 25}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Які методи можна використовувати для додавання елементів до словника?
Використання методу insert()
Створення нового словника та копіювання елементів
Просте присвоєння значення до нового ключа та використання методу update()
Використання методу add()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Які методи можна використовувати для видалення елементів зі словника?
pop(), del
remove()
erase
clear
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як можна ітеруватися по елементах словника?
for i in range(len(dictionary)):
for key in dictionary:
for value in dictionary.values():
for key, value in dictionary.items():
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як можна здійснити пошук елементів у словнику?
dictionary.index(key)
dictionary[value]
dictionary[key]
dictionary.get(key)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як можна видалити всі елементи зі словника в Python?
clear()
delete_all()
remove_all()
pop_all()
Access all questions and much more by creating a free account
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
13 questions
1.3.1. Compression, Encryption and Hashing
Quiz
•
12th Grade
10 questions
4.6 Word Quizizz
Quiz
•
8th - 12th Grade
12 questions
Комп'ютерна графіка 6 клас
Quiz
•
3rd - 12th Grade
12 questions
Середовище програмування Scratch 6 клас
Quiz
•
1st - 12th Grade
10 questions
Emerging technologies
Quiz
•
6th Grade - University
10 questions
Django Start
Quiz
•
12th Grade
10 questions
9 . Lists, Tuples, Sets and Dictionary - 4
Quiz
•
12th Grade
9 questions
OCR A Level Computer Science (H446) - Component 1.3.1 - Compression, Encryption and Hashing
Quiz
•
11th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
