Top 80+ Solved Non Linear Data Structures - Trees MCQ Questions Answer

From 61 to 71 of 71

Q. trees are B-trees of order 4. They are an isometric of trees.

a. AVL

b. AA

c. 2-3

d. Red-Black

  • d. Red-Black

Q. What is the best case height of a B-tree of order n and which has k keys?

a. logn (k+1) – 1

b. nk

c. logk (n+1) – 1

d. klogn

  • a. logn (k+1) – 1

Q. Which of the following is true?

a. larger the order of B-tree, less frequently the split occurs

b. larger the order of B-tree, more frequently the split occurs

c. smaller the order of B-tree, more frequently the split occurs

d. smaller the order of B-tree, less frequently the split occurs

  • a. larger the order of B-tree, less frequently the split occurs

Q. In a max-heap, element with the greatest key is always in the which node?

a. Leaf node

b. First node of left sub tree

c. root node

d. First node of right sub tree

  • c. root node

Q. What is the complexity of adding an element to the heap.

a. O(log n)

b. O(h)

c. O(log n) & O(h)

d. O(n)

  • c. O(log n) & O(h)

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

a. O(logn)

b. O(n)

c. O(nlogn)

d. O(n2)

  • a. O(logn)

Q. Heap can be used as

a. Priority queue

b. Stack

c. A decreasing order array

d. Normal Array

  • a. Priority queue
Subscribe Now

Get All Updates & News