Which symbol surrounds a dictionary?
Python dictionary

Flashcard
•
Others
•
University
•
Hard
Quizizz Content
FREE Resource
Student preview

7 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
{
2.
FLASHCARD QUESTION
Front
What data type is this?
quiz = {"Do you help out at home? ":"yes",
"Do you beleive in Santa? ":"yes"}}
Back
dictionary
3.
FLASHCARD QUESTION
Front
Given the dictionary person = {"name": "Alice", "age": 30}, how would you access Alice's age? Options: person[age], person["Alice", "age"], person.age, person["age"]
Back
person["age"]
4.
FLASHCARD QUESTION
Front
Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use? Options: d.delete(“john”:40), d.delete(“john”), del d[“john”], del d(“john”:40)
Back
del d[“john”]
5.
FLASHCARD QUESTION
Front
What will be the output of the following Python code snippet?
d = {"john":40, "peter":45}
d["john"]
Back
40
6.
FLASHCARD QUESTION
Front
Items are accessed by their position in a dictionary and All the keys in a dictionary must be of the same type.
Back
False
7.
FLASHCARD QUESTION
Front
What is the output of the following dictionary operation: dict1 = {"name": "Mike", "salary": 8000}; temp = dict1.get("age"); print(temp)?
Back
None
Similar Resources on Wayground
10 questions
Mini game

Flashcard
•
KG
7 questions
Review Dictionary Flashcard

Flashcard
•
12th Grade
6 questions
Swift Playground Variables

Flashcard
•
University
10 questions
Chapter 5 Reading Flashcard

Flashcard
•
University
10 questions
History of American Literature

Flashcard
•
University
5 questions
Phenotype Psychology

Flashcard
•
University
10 questions
FAMILY VOCAB

Flashcard
•
12th Grade
10 questions
AP Government Voting Rights

Flashcard
•
12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade