250+ TOP MCQs on Ternary Heap and Answers

Data Structures & Algorithms Multiple Choice Questions on “Ternary Heap – 1”.

1. Which property should ternary heap hold for execution?
a) Associative
b) Commutative
c) Tree
d) Heap

Answer: d
Clarification: Ternary heap is a type of data structure in the field of computer science. It is a part of the Heap data structure family. So, it should hold all the properties of Heap that is all the levels of the heap has to be filled from left to right.

2. Should leaves in ternary heap be distributed from left to right.
a) True
b) False

Answer: a
Clarification: Ternary heap is a type of data structure in the field of computer science. It is a part of the Heap data structure family. So, it should hold all the properties of Heap that is all the levels of the heap has to be filled from left to right.

3. What is the process of building a ternary heap called?
a) Heapify
b) Hashing
c) Linking
d) Merging

Answer: a
Clarification: Ternary heap is a type of data structure in the field of computer science. It is a part of the Heap data structure family. So, the process of building a ternary heap is known as Heapify.

4. Which type of data structure is a ternary heap?
a) Array
b) Hash
c) Priority Queue
d) Priority Stack

Answer: c
Clarification: Ternary heap is a type of data structure in the field of computer science. It is a part of the Heap data structure family. It is a priority queue type of data structure that follows all the property of heap.

5. Is the priority queue abstract data type.
a) True
b) False

Answer: a
Clarification: Priority queue is an abstract data type. It is also the extension of the Queue data structure where all the elements have been assigned some priority and on the basis of this priority, the elements are dequeued from the structure.

6. What is a ternary heap?
a) An array with three elements
b) Linked list with three elements
c) Tree with three children
d) Heap with all nodes having three children

Answer: d
Clarification: Ternary heap is a type of data structure in the field of computer science. It is a part of the Heap data structure family. So, it follows all the property of heap. Therefore, all the nodes in the ternary heap have 3 nodes.

7. Who invented d-ary heap?
a) Carl Rick
b) Alan Turing
c) Donald Johnson
d) Euclid

Answer: c
Clarification: Ternary heap is a type of data structure in the field of computer science. It is a part of the Heap data structure family. The d-ary heap was invented by Donald Johnson in the year 1975.

Leave a Reply

Your email address will not be published. Required fields are marked *