
HEAP
Authored by PVS SAIRAM
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
15 questions
HTML
Quiz
•
University - Professi...
10 questions
ER Model
Quiz
•
Professional Development
10 questions
Software Security
Quiz
•
University - Professi...
10 questions
C Programming
Quiz
•
Professional Development
10 questions
BASIC OF COMPUTER
Quiz
•
Professional Development
10 questions
Web Browsing
Quiz
•
10th Grade - Professi...
10 questions
Introduction to Hyperconverged: HCI 101
Quiz
•
Professional Development
10 questions
Sosialisasi BRIONE Data
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
12 questions
Mardi Gras Trivia
Quiz
•
Professional Development
7 questions
Copy of G5_U5_L14_22-23
Lesson
•
KG - Professional Dev...
12 questions
Unit 5: Puerto Rico W1
Quiz
•
Professional Development
42 questions
LOTE_SPN2 5WEEK2 Day 4 We They Actividad 3
Quiz
•
Professional Development
15 questions
Balance Equations Hangers
Quiz
•
Professional Development
31 questions
Servsafe Food Manager Practice Test 2021- Part 1
Quiz
•
9th Grade - Professio...