Python dictionary
Flashcard
•
Others
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

7 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which symbol surrounds a dictionary?
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
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
10 questions
Synthetic Personalisation A level English
Flashcard
•
12th Grade - University
2 questions
Untitled Flashcards
Flashcard
•
KG
6 questions
Lois Protection des Consommateurs
Flashcard
•
Professional Development
7 questions
Fundamentals of Common Mechanisms and Lifting Equipment
Flashcard
•
12th Grade
10 questions
CHAGOS VS UK
Flashcard
•
University
10 questions
Vocabulary Flashcards
Flashcard
•
KG - University
10 questions
Analisis Real (Fungsi Kontinu&Ukuran serta Fungsi Monoton&Invers
Flashcard
•
University
7 questions
Adverbios
Flashcard
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Others
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University