
HEAP
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
PVS SAIRAM
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following are min heaps?
A
B
C
D
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many swaps are made in the min heap when inserting the value 18?
0
1
2
3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operation has efficiency O(1) using the java.util.PriorityQueue class?
Peek()
Pop()
Poll()
Remove()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following PriorityQueue<E> methods will throw an exception when used on an empty queue?
remove()
poll()
pop()
peek()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When removing the root from a min heap, what is the first step?
Replace the root with the next smallest value from the tree
Replace the root with the leaf furthest to the left on the bottom level of the tree
Replace the root with the leaf furthest to the right on the bottom level of the tree
Replace the root with the smallest of its children
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The formula for finding the right child of a node in a heap stored in an array is ________ . (The root is at index 0)
( 2 * Parent ) + 2
( 2 * Parent ) + 1
( 2 * Parent ) + 3
( 2 * Parent )
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the process of 'heapifying' in Heap Sort?
Arranging elements in a heap data structure
Sorting elements in reverse order
Removing elements from the heap
Randomly shuffling the elements
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Quiz on Operating System Services
Quiz
•
Professional Development
10 questions
ML in Apple platforms
Quiz
•
University - Professi...
13 questions
TIP Trivia
Quiz
•
Professional Development
10 questions
Digital Tools in Education Pre-Test
Quiz
•
Professional Development
14 questions
ABREDES - Devasc Python
Quiz
•
Professional Development
11 questions
FDE cycle
Quiz
•
Professional Development
10 questions
GENERAL KNOWLEDGE
Quiz
•
Professional Development
10 questions
Ice Breaker Challenge- Guess the Tool by Its Logo
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
