
Test 2
Authored by Ferhat Travaci
Computers
11th Grade
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
30 questions
Python Comparison , logical operators & If statement
Quiz
•
9th - 12th Grade
30 questions
Sensor Knowledge Quiz
Quiz
•
5th Grade - University
30 questions
GCSE Computer Science Unit 1.1 Systems Architecture Lesson 1-5
Quiz
•
9th - 11th Grade
30 questions
Empowerment Technology
Quiz
•
11th Grade
30 questions
IT security - 3
Quiz
•
9th Grade - University
35 questions
PH Bab 4 Sistem Komputer dan Pengalamatan Memori
Quiz
•
11th Grade
30 questions
1.5 System Software
Quiz
•
9th - 11th Grade
28 questions
Chapter13: Assessment
Quiz
•
7th Grade - Professio...
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