
Map and Sorting Algorithms Quiz
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
Ілияс Тілепалды
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the del statement do in the context of a map?
Deletes the entire map
Deletes a key-value pair given a key
Clears the map only if it’s empty
Returns the value being deleted
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does len() return when used on a map?
The number of characters in all keys
The length of the longest key
The number of key-value pairs in the map
The number of values greater than zero
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression key in map?
The key is removed if it exists
Returns True if the key exists in the map
Adds the key if it's missing
Throws an error if the key doesn’t exist
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you have the following list to sort using Bubble Sort: [19, 1, 9, 7, 3, 10, 13, 15, 8, 12] Which list represents the partially sorted list after three complete passes of bubble sort?
[1, 9, 19, 7, 3, 10, 13, 15, 8, 12]
[1, 3, 7, 9, 10, 8, 12, 13, 15, 19]
[1, 7, 3, 9, 10, 13, 8, 12, 15, 19]
[1, 9, 19, 7, 3, 10, 13, 15, 8, 12]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you have the list: [11, 7, 12, 14, 19, 1, 6, 18, 8, 20] Which list represents the partially sorted list after three complete passes of Selection Sort?
[7, 11, 12, 1, 6, 14, 8, 18, 19, 20]
[7, 11, 12, 14, 19, 1, 6, 18, 8, 20]
[11, 7, 12, 13, 1, 6, 8, 18, 19, 20]
[11, 7, 12, 14, 8, 1, 6, 18, 19, 20]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you have the list: [15, 5, 4, 18, 12, 19, 14, 10, 8, 20] Which list represents the partially sorted list after three complete passes of Insertion Sort?
[4, 5, 12, 15, 14, 10, 8, 18, 19, 20]
[15, 5, 4, 10, 12, 8, 14, 18, 19, 20]
[4, 5, 15, 18, 12, 19, 14, 10, 8, 20]
[15, 5, 4, 18, 12, 19, 14, 8, 10, 20]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following list of numbers: [21, 1, 26, 45, 29, 28, 2, 9, 16, 49, 39, 27, 43, 34, 46, 40] Which answer illustrates the list to be sorted after 3 recursive calls to Merge Sort?
[16, 49, 39, 27, 43, 34, 46, 40]
[21, 1]
[21, 1, 26, 45]
[21]
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
18 questions
CHAPTER 1: SYSTEM ANALYSIS AND DESIGN
Quiz
•
University
22 questions
ÔN TẬP CRV1
Quiz
•
6th Grade - University
18 questions
Windows Server Installation with DHCP, DNS, and AD
Quiz
•
University
20 questions
QUIZ 2 - SỬ DỤNG BẢNG TÍNH CƠ BẢN -ICC
Quiz
•
University
20 questions
Activity - Task Completion and Safety
Quiz
•
9th Grade - University
20 questions
Week 1 - Topic 1 SECP3623-02
Quiz
•
University
20 questions
DIGILOG - 10/08/2025
Quiz
•
University
15 questions
BASIC PC COMPONENTS AND TROUBLESHOOTING - BATCH 1
Quiz
•
University
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
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
