Suppose we have numbers between 1 and 1000 in a binary search tree and want to search for the number 363. Which of the following sequence could not be the sequence of the node examined?

Binary Search Tree Quiz

Quiz
•
Computers
•
University
•
Hard
Rejimoan R
Used 6+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
2, 252, 401, 398, 330, 344, 397, 363
924, 220, 911, 244, 898, 258, 362, 363
925, 202, 911, 240, 912, 245, 258, 363
2, 399, 387, 219, 266, 382, 381, 278, 363
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
In full binary search tree every internal node has exactly two children. If there are 100 leaf nodes in the tree, how many internal nodes are there in the tree?
25
49
99
101
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
If a node having two children is to be deleted from binary search tree, it is replaced by its
In-order predecessor
In-order successor
Pre-order predecessor
Pre-order successor
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
In a full binary tree, every internal node has exactly two children. A full binary tree with 2n+1 nodes contains
n leaf node
n internal nodes
n-1 leaf nodes
n-1 internal node
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about binary trees is NOT true?
Every binary tree has at least one node.
Every non-empty tree has exactly one root node.
Every node has at most two children
Every non-root node has exactly one parent.
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
If the two tree traversals are:
1) Inorder: DGBAHEICF
2) postorder: GDBHIEFCA
then the preorder tree traversal can be…
A-B-D-G-C-E-H-I-F
A-B-G-D-E-C-H-I-F
B-A-D-G-C-E-H-I-F
A-B-D-G-C-E-H-F-I
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
How many distinct binary search trees can be created out of 4 distinct keys?
14
24
5
42
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We are given a set of n distinct elements and an unlabelled binary tree with n nodes. In how many ways can we populate the tree with the given set so that it becomes a binary search tree?
0
1
n!
1/n+1
Similar Resources on Quizizz
12 questions
Binary Tree

Quiz
•
University
7 questions
Binary Search Tree

Quiz
•
University
10 questions
DS Quiz1

Quiz
•
University
10 questions
27Mar

Quiz
•
University
7 questions
Binary Search Tree

Quiz
•
University
10 questions
DRAINER CS : Data Structures Final Review

Quiz
•
University
10 questions
BCSC0006 Trees

Quiz
•
University
13 questions
Data Structure and Algorithms Semi-Final Examination

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade