DS  Quiz2

DS Quiz2

University

25 Qs

quiz-placeholder

Similar activities

mock exam-1

mock exam-1

University

20 Qs

Battle With DSA

Battle With DSA

University

30 Qs

DATA STRUCTURES QUIZ-1

DATA STRUCTURES QUIZ-1

University

23 Qs

Struktur Data Pra UAS

Struktur Data Pra UAS

University

20 Qs

Quiz Struktur Data

Quiz Struktur Data

University

25 Qs

DSA_Prelim Quiz

DSA_Prelim Quiz

University

25 Qs

Data Structures- Introduction

Data Structures- Introduction

University

20 Qs

BUG-OFF

BUG-OFF

University

30 Qs

DS  Quiz2

DS Quiz2

Assessment

Quiz

Computers

University

Medium

Created by

DEVAKI P

Used 1+ times

FREE Resource

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

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?