GATE CSE Trees – Data Structures Practice Test | Set 1

Questions 6-10 of 100

0% completed (0/100 answered)
Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 6

MCQ · Single Correct 1 mark

In a complete binary tree of n nodes, what is the index of the parent of node at index i (1-based indexing)?

Answers for question 6

Question 7

MCQ · Single Correct 2 mark

What is the minimum number of nodes in an AVL tree of height 4 (where height of a single node tree is 0)?

Answers for question 7

Question 8

MCQ · Single Correct 2 mark

Consider a max-heap represented as an array [100, 80, 60, 50, 70, 40, 30, 20, 10]. After deleting the maximum element (100) and performing max-heapify, what is the array representation of the resulting max-heap?

Answers for question 8

Question 9

MCQ · Single Correct 1 mark

How many distinct Binary Search Trees (BSTs) can be constructed with 4 distinct keys?

Answers for question 9

Question 10

MCQ · Single Correct 1 mark

In a fully (double) threaded binary tree with n nodes, where every NULL child pointer is replaced by a predecessor/successor thread, how many threads are there?

Answers for question 10
Scroll to Top