Binary Search Tree Quiz

Binary Search Tree Quiz

University

8 Qs

quiz-placeholder

Similar activities

Seru-seruan B9

Seru-seruan B9

University - Professional Development

10 Qs

Computer shortcuts

Computer shortcuts

KG - Professional Development

10 Qs

Determining System Requirements

Determining System Requirements

University

11 Qs

A level Computer Science In-fix post-fix Reverse polish

A level Computer Science In-fix post-fix Reverse polish

10th Grade - University

10 Qs

introduction to computer graphics

introduction to computer graphics

University

10 Qs

SE Quiz 2 (JKL)

SE Quiz 2 (JKL)

University

10 Qs

QUIZZ 1 : DATABASE FUNDAMENTALS

QUIZZ 1 : DATABASE FUNDAMENTALS

University

10 Qs

(CPDS) Time and Global States - Clocks

(CPDS) Time and Global States - Clocks

University

9 Qs

Binary Search Tree Quiz

Binary Search Tree Quiz

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Rejimoan R

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

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?

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

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?