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 Quizizz
5 questions
Phenotype Psychology

Flashcard
•
University
10 questions
AP Government Voting Rights

Flashcard
•
12th Grade
4 questions
Purpose of a Data Dictionary

Flashcard
•
KG - University
7 questions
Review Dictionary Flashcard

Flashcard
•
12th Grade
10 questions
LANGUAGE FORMS AND FUNCTIONS

Flashcard
•
University
10 questions
HBSE Chapter 10

Flashcard
•
University
10 questions
10 English Idioms About Age

Flashcard
•
12th Grade - University
10 questions
Adjectives and Adverbs

Flashcard
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade