DSA Quiz

DSA Quiz

University

20 Qs

quiz-placeholder

Similar activities

Knowledge Knockout[Quiz Round](2nd-4th years)

Knowledge Knockout[Quiz Round](2nd-4th years)

University

15 Qs

DSQUIZ 2020-21

DSQUIZ 2020-21

University

18 Qs

1 Binary Search Trees

1 Binary Search Trees

University

20 Qs

Quantitative Aptitude Series

Quantitative Aptitude Series

University

20 Qs

Heaps

Heaps

University

15 Qs

Quicksort. Hash Tables, and Binary Search Trees

Quicksort. Hash Tables, and Binary Search Trees

University

18 Qs

SMARTICUS

SMARTICUS

University

20 Qs

Sorting and Searching Algorithms Quiz - Batch 1

Sorting and Searching Algorithms Quiz - Batch 1

University

20 Qs

DSA Quiz

DSA Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Arikumar K S

Used 5+ times

FREE Resource

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

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?