Vidyalelo
Data Structure · all questions

Heaps
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

166

Questions

6/9

Page

Pick an option on a question to see the right answer and solution.

Given an array of element 5, 7, 9, 1, 3, 10, 8, 4. Which of the following are the correct sequences of elements after inserting all the elements in a min-heap?

Select an option to see the answer and solution.

Left child of parent node has value lesser than the parent node.

Select an option to see the answer and solution.

What is the run time efficiency of an insertion algorithm in d-heap?

Select an option to see the answer and solution.

Which of the following is difficult to determine the right path length?

Select an option to see the answer and solution.

If we implement heap as maximum heap , adding a new node of value 15 to the left most node of right subtree. What value will be at leaf nodes of the right subtree of the heap.
Heaps mcq question image

Select an option to see the answer and solution.

An array consists of n elements. We want to create a heap using the elements. The time complexity of building a heap will be in order of

Select an option to see the answer and solution.

How is a pairing heap represented?

Select an option to see the answer and solution.

What is the fundamental operation performed in skew heaps?

Select an option to see the answer and solution.

The leaf node for a heap of height h will be at which position.

Select an option to see the answer and solution.

What is the efficiency of merge used in leftist heaps?

Select an option to see the answer and solution.

Does there exist a heap with seven distinct elements so that the Inorder traversal gives the element in sorted order.

Select an option to see the answer and solution.

. . . . . . . . is a self-adjusting version of a leftist heap.

Select an option to see the answer and solution.

What is the location of a parent node for any arbitary node i?

Select an option to see the answer and solution.

What is the height of a given minimum ternary heap?
Heaps mcq question image

Select an option to see the answer and solution.

In a leftist heap, the null path length of a null node is defined as?

Select an option to see the answer and solution.

The roots of the elements of the subtrees are smaller than the root of the heap.

Select an option to see the answer and solution.

In a binomial heap the root value is greater than left child and less than right child.

Select an option to see the answer and solution.

The worst case complexity of deleting any arbitrary node value element from heap is . . . . . . . .

Select an option to see the answer and solution.

The worst case running time of all operations in a skew heap is given as?

Select an option to see the answer and solution.

In what time can a leftist heap be built?

Select an option to see the answer and solution.