
7. Dictionaries - Data Structures

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Robotic Schools
Used 25+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
How do you create an empty dictionary to store information about a student in Python?
2.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Which method is used to get all course names (keys) in a dictionary storing course details?
3.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
What will be the output of the following code?
85
90
Bob
88
4.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Which method is used to add a new course with its grade to an existing student dictionary?
add()
insert()
append()
update()
5.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
What is the output of the following code?
{"Alice": 85, "Bob": 90, "Charlie": 88}
{"Alice": 85, "Charlie": 88}
{"Bob": 90, "Alice": 85, "Charlie": 88}
KeyError
6.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
What will be the output of the following code?
{"name": "Alice", "age": 30, "department": "HR"}
{"name": "Alice", "age": 31, "department": "HR"}
KeyError
{"name": "Alice", "age": 30, "department": "HR", "age": 31}
7.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
What is the output of the following code?
{"Math": 95, "English": 88, "Science": 92, "History": 85, "Geography": 90}
{"Math": 95, "English": 88, "Science": 92, "History": 85}
{"Math": 95, "English": 88, "Science": 92}
Error
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
Alice Chapter 1

Quiz
•
7th - 8th Grade
20 questions
Quiz 1 - October Grade 8

Quiz
•
8th Grade
16 questions
Quizz

Quiz
•
1st - 12th Grade
12 questions
Python Fundamentals

Quiz
•
8th Grade
10 questions
PLTW ~ CSIM ~ Lesson 1 Exam Review

Quiz
•
6th Grade
15 questions
Python Turtle Quiz

Quiz
•
7th Grade
17 questions
Python KS3

Quiz
•
8th Grade
10 questions
Python Lists

Quiz
•
8th - 9th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Digital Footprint

Quiz
•
6th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade