unit-4 test-2
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
PRASHANT ATMAKURI
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Suppose a binary search tree with 1000 distinct elements is also a complete binary tree. The tree is stored using the array representation of binary heap trees. Assuming that the array indices start with 0, the 3rd largest element of the tree is stored at index ___________.
509
409
510
408
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
The preorder traversal of a binary search tree is 15, 10, 12, 11, 20, 18, 16, 19. Which one of the following is the postorder traversal of the tree?
20, 19, 18, 16, 15, 12, 11, 10
10, 11, 12, 15, 16, 18, 19, 20
11, 12, 10, 16, 19, 18, 20, 15
19, 16, 18, 20, 11, 12, 10, 15
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
The postorder traversal of a binary tree is 8,9,6,7,4,5,2,3,1. The inorder traversal of the same tree is 8,6,9,4,7,2,5,1,3. The height of a tree is the length of the longest path from the root to any leaf. The height of the binary tree above is ______.
3
4
5
2
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The height of a tree is the length of the longest root-to-leaf path in it. The maximum and minimum number of nodes in a binary tree of height 5 are
63,6
64,5
32,6
31,5
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the following is/are correct inorder traversal sequence(s) of binary search tree(s)?
I. 3, 5, 7, 8, 15, 19, 25
II. 5, 8, 9, 12, 10, 15, 25
III. 2, 7, 10, 8, 14, 16, 20
IV. 4, 6, 7, 9 18, 20, 25
I. IV.
II. III.
II. IV.
II.
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What are the worst-case complexities of insertion and deletion of a key in a binary search tree?
log(n), log(n)
n,n
n, log(n)
log(n),n
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A binary tree T has 20 leaves. The number of nodes in T having two children is _______________.
20
19
18
22
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Ipad
Quiz
•
1st Grade - Professio...
18 questions
OT K2 L3 tin hoc
Quiz
•
Professional Development
17 questions
Volume 2
Quiz
•
Professional Development
20 questions
El Dibujo Técnico
Quiz
•
Professional Development
20 questions
Revisão Informática Básica
Quiz
•
Professional Development
20 questions
SQL Programming Revision
Quiz
•
Professional Development
20 questions
Sorting - IV year
Quiz
•
Professional Development
18 questions
Numérique et moi
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
