
Heaps Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Jordan Burgess
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 1 pt
What are the two storage rules that make heaps special?
The tree is a complete binary tree
Every level except the deepest must have as many nodes as possible
A parent's item is never less than the item of any of its children
The item contained in a node is greater than or equal to the items of the node's children
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How can a heap be implemented using an array?
By storing the root node in position 1 and locating the children randomly
By storing the root node in position 1 and locating the children mathematically
By storing the root node in position 0 and locating the children mathematically
By storing the root node in position 0 and locating the children randomly
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a priority queue?
A queue in which items are stored based on their insertion order
A queue in which items are stored based on their alphabetical order
A queue in which each item has a priority assigned to it
A queue in which items are stored based on their numerical order
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What are the two key operations for a heap?
Adding a new entry and removing the entry with the highest priority
Adding a new entry and removing the entry with the middle priority
Adding a new entry and removing the entry with the lowest priority
Adding a new entry and removing any random entry
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the first step in adding a new entry to a heap?
Swap the new entry with the highest priority child node
Swap the new entry with the right child node
Swap the new entry with the left child node
Swap the new entry with the parent node
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the first step in removing an entry from a heap?
Return the entry stored in the right child node
Return the entry stored in the highest priority child node
Return the entry stored in the root node
Return the entry stored in the left child node
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the process called when reheapifying a heap upward?
Reheapification upward
Reheapification downward
Heapification upward
Heapification downward
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
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
10 questions
C++ Array Quiz
Quiz
•
University
10 questions
paquetes contables lección 1
Quiz
•
11th Grade - Professi...
20 questions
TEST1.PY
Quiz
•
10th Grade - University
20 questions
MESYUARAT KE-3 MYTECC ASSEMBLY: TOGETHER WE BIND
Quiz
•
University
10 questions
Node.js
Quiz
•
University
10 questions
Software Testing
Quiz
•
University
20 questions
Review Quiz (Chapter 3&4)
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
