Binary Tree and BST MCQs

Binary Tree and BST MCQs

University

65 Qs

quiz-placeholder

Similar activities

Online Quiz for B.Tech AI/ML II Year III Semester

Online Quiz for B.Tech AI/ML II Year III Semester

University

60 Qs

C Programming

C Programming

University

70 Qs

Computing A level AQA

Computing A level AQA

12th Grade - University

70 Qs

Data Structure & Algorithm PUT EXAM

Data Structure & Algorithm PUT EXAM

University

60 Qs

Section Three: Algorithms - AQA Comp Sci A Level

Section Three: Algorithms - AQA Comp Sci A Level

11th Grade - University

61 Qs

DATA STRUCTURES

DATA STRUCTURES

University

60 Qs

FINALS Data Structure and algorithm

FINALS Data Structure and algorithm

University

62 Qs

DATA STRUCTURES QUIZ

DATA STRUCTURES QUIZ

University

70 Qs

Binary Tree and BST MCQs

Binary Tree and BST MCQs

Assessment

Quiz

Computers

University

Hard

Created by

Shubham Khari

Used 3+ times

FREE Resource

65 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the degree of a binary tree node?

1

2

Maximum of 2

At least 1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum number of nodes in a binary tree of height $ h $?

$ 2^h - 1 $

$ 2^{h+1} - 1 $

$ 2^{h-1} $

$ h^2 $

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a binary tree, the number of leaf nodes is:

Greater than the number of internal nodes.

Equal to the number of internal nodes.

One more than the number of internal nodes in a full binary tree.

Twice the height of the tree.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a complete and a full binary tree?

A complete binary tree has all levels fully filled.

A full binary tree has all levels filled except possibly the last.

A full binary tree has all nodes with 0 or 2 children.

There is no difference.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a binary tree has $ N $ nodes, what is the height of the tree in the worst case?

$ O(\log N) $

$ O(N) $

$ O(1) $

$ O(\sqrt{N}) $

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following trees is not a binary tree?

AVL tree

Red-Black tree

B-tree

Huffman tree

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The minimum height of a binary tree with $ n $ nodes is:

$ \lfloor \log_2(n+1) \rfloor $

$ \lceil \log_2(n+1) \rceil $

$ \log_2 n $

$ \lfloor \log_2 n \rfloor $

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?