Search Header Logo

DSA Quiz

Authored by Arikumar K S

Computers

University

Used 5+ times

DSA Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which traversal of binary search tree outputs the value in sorted order?

Pre-order
Post-order
In-Order
None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A binary search tree by inserting in order the following integers: 50, 22, 15, 62, 77, 5, 9, 100, 20, 58, 91, 3, 8, 37, 60, 24, The number of the node in the left sub-tree and right sub-tree of the root, respectively, is

(10,5)
(8,7)
(7,8)
(9,6)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the MINIMUM number of nodes in a binary search tree of height = 5?

6
5
4
None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When deleting from a binary search tree, if the node being deleted has 2 children, we replace the entry with ____.

the inorder successor
the left child
the right child
None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If I deleted the root from the Binary Search Tree what could I replace it with?

52
70
30
75

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum height of any AVL-tree with 7 nodes? Assume that the height of a tree with a single node is 0.

2
4
3
5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the minimum possible height of an AVL tree with 7 nodes?

2
3
1
4

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?