
Dictionary in Python

Quiz
•
Computers
•
8th Grade
•
Medium
Amna Sajjad
Used 8+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A dictionary is 'like' a list.
True
False
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
In a dictionary, each key maps to a _____________.
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
How would you create an empty Dictionary? Select all that apply.
a=dict()
a={}
a=dict[]
a=dict
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Curly braces {} represent a list, the same way square brackets [] represent a dictionary.
True
False
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When you print a dictionary, the order of the key-value pairs may not be the same!
True
False
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would the len() function print in the following code?
a_dictionary={"a":1,"b":1,"c":1,"d":1,"e":5}
print(len(a_dictionary))
5
10
Error
None of these
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What method in dictionaries takes a key and a default value?
find()
get()
search()
lookup()
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
AES MS Word Essentials 1

Quiz
•
7th - 8th Grade
10 questions
Avaliação Pensamento Computacional - Prático

Quiz
•
1st Grade - Professio...
12 questions
Python Homework

Quiz
•
8th Grade
10 questions
Основы Python

Quiz
•
8th Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
7 questions
Dict2

Quiz
•
6th - 8th Grade
14 questions
3D Printing

Quiz
•
8th Grade
15 questions
Programming - What Do I Know?

Quiz
•
7th - 9th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade