DSA + System design - 15

DSA + System design - 15

Professional Development

11 Qs

quiz-placeholder

Similar activities

ME ADS QUIZ

ME ADS QUIZ

Professional Development

11 Qs

CN Basics

CN Basics

Professional Development

10 Qs

Blockchain game

Blockchain game

Professional Development

7 Qs

Python_DS2

Python_DS2

Professional Development

10 Qs

Python - Heap

Python - Heap

Professional Development

15 Qs

Trees

Trees

Professional Development

10 Qs

Machine Learning Test-4

Machine Learning Test-4

Professional Development

14 Qs

Kubernetes architecture

Kubernetes architecture

Professional Development

7 Qs

DSA + System design - 15

DSA + System design - 15

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Puneet Kansal

Used 1+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the time complexity of searching for an element in a BST?

O(n)

O(log n)

O(n log n)

O(1)

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Given a BST, what is the result of an inorder traversal?

Nodes are visited in ascending order.

Nodes are visited in descending order.

Nodes are visited in random order.

Nodes are visited level by level.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is not a self-balancing binary search tree?

AVL Tree

Red-Black Tree

B-Tree

Binary Heap

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In a BST, which node has the smallest value?

The root node

The leftmost node

The rightmost node

Any leaf node

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which technique is used to maintain balance in an AVL tree?

Hashing

Dynamic Programming

Rotation

Backtracking

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the time complexity of finding the minimum value in a BST?

O(1)

O(log n)

O(n)

O(n log n)

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following operations is not supported efficiently by a BST?

Search

Insertion

Deletion

Random Access

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?