Dictionary Flashcard
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What data type is used to store data values in key:value pairs in Python?
Back
Dictionary
2.
FLASHCARD QUESTION
Front
Are duplicates allowed in Python dictionaries?
Back
No
3.
FLASHCARD QUESTION
Front
Which collection type in Python is ordered and changeable, and allows duplicate members?
Back
List
4.
FLASHCARD QUESTION
Front
How can you add items to a dictionary after it has been created? Options: Using the add() method, Using the update() method, By reassigning values, Dictionaries cannot be changed after creation
Back
Using the update() method
5.
FLASHCARD QUESTION
Front
Which of the following is NOT a valid dictionary method in Python? thisdict.get(), thisdict.append(), thisdict.items(), thisdict.keys()
Back
thisdict.append()
6.
FLASHCARD QUESTION
Front
What is the correct way to print the value of the 'brand' key in the dictionary? Options: print(thisdict.get('brand')), print(thisdict['brand'])
Back
Both are correct
7.
FLASHCARD QUESTION
Front
What will the following code output?
Options: "soda", KeyError, ["veggie burger", "salad", "soda"], ["hamburger", "fries", "soda"]
Back
["hamburger", "fries", "soda"]
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
7 questions
Understanding Stress to Build Strength
Flashcard
•
11th Grade
15 questions
Film Appreciation Honors: Fun Facts
Flashcard
•
12th Grade
15 questions
Founding Ideals Review
Flashcard
•
11th - 12th Grade
10 questions
Interview Skills
Flashcard
•
University
10 questions
Celebration of Knowledge (Early America/Gilded Age)
Flashcard
•
11th Grade
11 questions
Untitled Flashcards
Flashcard
•
KG - University
6 questions
comparative and superlative
Flashcard
•
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