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
13 questions
DS UNIT-2 TEST-2

Quiz
•
University
12 questions
MS Excel Basic

Quiz
•
University
10 questions
Rapid Round 1

Quiz
•
University
7 questions
Final Practice

Quiz
•
University
11 questions
Data Structures - Training: Quiz 1

Quiz
•
University
10 questions
Ulangan Harian Informatika SPUMA (Analisis Data)

Quiz
•
University
7 questions
Clean Code

Quiz
•
University
10 questions
PDS - 04225 Pointers & Dynamic Arrays - Chapter 8

Quiz
•
University - Professi...
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade