DSA Group 2 (Heaps Quiz)

Quiz
•
Computers
•
University
•
Medium
Thed Palting
Used 2+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Removes the maximum element from Max Heap.
getMax()
extractMax()
insert()
extractMin()
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
It returns the root element of Min Heap.
getMin()
extractMin()
getMax()
insert()
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
These are all the importance of Heap in programming EXCEPT:
Efficient Priority Queues
File Compression
Memory Management
Garbage Collection
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
A Heap is a special Tree-based data structure in which the tree is a complete binary tree where the value of each parent node is either higher or lower than the value of its child nodes.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
These are all the various uses of Heap EXCEPT:
Sorting Algorithms
Dynamic Programming
Load Balancing
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
it is a complete binary tree in which the value in each internal node is smaller
than or equal to the values in the children of that node.
Min Heap
Max Heap
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
It is a complete binary tree in which the value in each internal node is greater than or equal to the values in the children of that node.
Min Heap
Max Heap
8.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Removes the minimum element from MinHeap. The Time Complexity of this Operation is O(Log n) as this operation needs to maintain the heap property (by calling heapify()) after removing the root.
getMax()
extractMax()
getMin()
extractMin()
Similar Resources on Wayground
12 questions
IT test dlya Bogdana

Quiz
•
University
10 questions
ITPC 116 Section 6

Quiz
•
University
10 questions
SOAL TIK RAFAEL DAN ADI

Quiz
•
10th Grade - University
10 questions
BCSC0006 Trees

Quiz
•
University
10 questions
Penilaian Harian Bab2.1

Quiz
•
9th Grade - University
10 questions
Examen de entrada Excel Intermedio

Quiz
•
University
10 questions
FUNCIONES PRACTICA 01

Quiz
•
University
10 questions
Year 10 Plenary SUM,MAX, MIN, AVERAGE

Quiz
•
6th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University