Search Header Logo

Binary Search Trees and Balanced Trees Quiz

Authored by Matthew Garcia

Computers

University

Used 20+ times

Binary Search Trees and Balanced Trees Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the worst case, a binary search tree will take how much time to search an element?

O(n)

O(log n)

O(n^2)

O(n log n)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How much time does an AVL tree take to perform insert, insert, and delete operations in the average case as well as the worst case?

O(n)

O(log n)

O(n^2)

O(n log n)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When the left sub-tree of the tree is one level higher than that of the right sub-tree, then the balance factor is

0

1

-1

2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which rotation is done when the new node is inserted in the right sub-tree of the right sub-tree of the critical node?

LL

LR

RL

RR

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a node N is accessed it is splayed to make it the

Root node

Parent node

Child node

Sibling node

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a binary search tree, all the nodes in the left sub-tree have a value less than that of the root node.

True

False

7.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

To find the node with the largest value, we will find the value of the rightmost node of the ____ ____ _____.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?