Search Header Logo

DS Quiz2

Authored by DEVAKI P

Computers

University

Used 1+ times

DS  Quiz2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the worst case time complexity of searching an item in AVL tree?

O(1)

O(Log N)

O(N log N)

N log (N)

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the average case time complexity of inserting an item in an AVL tree?

O(1)

O(Log N)

O(N)

O(N log N)

3.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Which of the following operations can be performed in O(Log N) time in an AVL tree?

Insertion

Deletion

Searching

All of the above

4.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

We have 2,5 in AVL tree. When we insert 7 in that AVL tree whether it maintains AVL property?

no

yes

5.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

What balancing technique is used in an AVL tree to maintain its height?

Left Rotation

Right Rotation

All of the above

6.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

What is the maximum height of an AVL tree with N nodes?

O(N)

O(Log N)

O(N log N)

O(sqrt(N))

7.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

The AVL tree has 5,7. When we insert 6, which rotation is needed to balance the tree?

SRR

DRR

SRL

DRL

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?