
7. Dictionaries - Data Structures
Quiz
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Medium
Robotic Schools
Used 30+ times
FREE Resource
Enhance your content in a minute
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
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
Word basics
Quiz
•
8th - 12th Grade
10 questions
Microsoft Publisher
Quiz
•
7th - 10th Grade
20 questions
Computer Network Quiz (Year 6)
Quiz
•
6th Grade
10 questions
Quick Revision Term3
Quiz
•
7th Grade
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
17 questions
Basic Docs
Quiz
•
8th - 9th Grade
10 questions
File Management 3 Quiz
Quiz
•
8th Grade
16 questions
Robotic /coding exam
Quiz
•
6th - 8th Grade
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
