
Test 2

Quiz
•
Computers
•
11th Grade
•
Easy
Ferhat Travaci
Used 10+ times
FREE Resource
33 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What is the primary purpose of a dictionary in Python?
Storing elements in a sorted order.
Storing only numeric data.
To perform mathematical operations
To store data values in key:value pairs
2.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What does it mean for a dictionary to be changeable?
Items can be added, removed, or modified after the dictionary has been created
The items cannot be modified
The items have a defined order
The dictionary cannot have duplicate items
3.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
How can you determine the number of items in a dictionary?
Using the count() method
Using the length() function
Using the len() function
Using the size() method
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What data types can the values in dictionary items be?
Only int data type
Only boolean data type
Only string data type
String, int, boolean, and list data types
5.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Suppose you have the following dictionary, which stores the names and ages of people.
Which line correctly prints Bo’s age?
print(my_dictionary[0])
print(my_dictionary[0][1])
print(my_dictionary["Bo"])
print(my_dictionary["Bo"][1])
6.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What kind of data structure is user_data in the following declaration?
user_data = {"name": "TJ", "age":24, "user_name":"artLover123"}
Tuple
List
Dictionary
2D List
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
A dictionary maps:
strings to strings
strings to numbers
indices to elements
keys to values
Create a free account and access millions of resources
Similar Resources on Wayground
28 questions
Python Institute Practice exam 3

Quiz
•
11th Grade
30 questions
Python Introduction

Quiz
•
9th - 11th Grade
30 questions
PAS INFORMATIKA 2025

Quiz
•
10th Grade - University
31 questions
Python Lists

Quiz
•
8th Grade - University
28 questions
Key Programming Concepts

Quiz
•
5th - 12th Grade
34 questions
Python Dictionary

Quiz
•
11th - 12th Grade
31 questions
Тест по Python

Quiz
•
11th Grade
30 questions
ทดสอบ python

Quiz
•
11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade