
Python Dict

Quiz
•
Computers
•
10th Grade
•
Hard
Сергій Денисенко
Used 2+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Що таке словник в Python?
Впорядкована колекція елементів, яка зберігає їх у вигляді пари "ключ-значення".
Невпорядкована колекція елементів, яка зберігає їх у вигляді пари "ключ-значення".
Колекція елементів, яка зберігає їх у вигляді пари "ключ-значення".
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як додати елемент до словника в Python?
capital_city["Japan"]="Tokyo"
capital_city.add("Japan":"Tokyo")
capital_city.append("Japan":"Tokyo")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як створити словник в Python?
capital_city = {"Nepal": "Kathmandu", "Ukraine": "Kyiv", "Italy": "Rome"}
capital_city = ["Nepal": "Kathmandu", "Ukraine": "Kyiv", "Italy": "Rome"]
capital_city = ("Nepal": "Kathmandu", "Ukraine": "Kyiv", "Italy": "Rome")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як видалити елемент зі словника в Python?
del capital_city["Japan"]
capital_city.remove("Japan")
capital_city.delete("Japan")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як ітерувати по словнику в Python?
for key in capital_city: print(key)
for key, value in capital_city: print(key, value)
for key, value in capital_city.items(): print(key, value)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як змінити значення у словнику в Python?
student_id[112]="Stan"
student_id.change(112, "Stan")
student_id.update(112, "Stan")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Що таке ключ у словнику Python?
Унікальний ідентифікатор, який пов'язаний із кожним значенням.
Значення, яке пов'язане з кожним ідентифікатором.
Індекс, який пов'язаний із кожним значенням.
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Python

Quiz
•
9th - 12th Grade
12 questions
Основи Python

Quiz
•
7th - 12th Grade
12 questions
Python for loop

Quiz
•
4th - 12th Grade
14 questions
Работа с файлами

Quiz
•
10th Grade
9 questions
Величини. Змінні. Вказівка присвоювання

Quiz
•
1st - 12th Grade
10 questions
Строковые методы

Quiz
•
10th Grade
12 questions
Основи формул в Excel

Quiz
•
9th Grade - University
10 questions
KS4 Programming Techniques (1)

Quiz
•
8th - 10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade