Binary Search Tree (BST)

Binary Search Tree (BST)

University

26 Qs

quiz-placeholder

Similar activities

UH BAB II

UH BAB II

9th Grade - University

25 Qs

CIW IBA Lesson 3 Vocabulary

CIW IBA Lesson 3 Vocabulary

8th Grade - Professional Development

24 Qs

Graph, Trees and Recursion Quiz

Graph, Trees and Recursion Quiz

University

22 Qs

Jarkom-BSI

Jarkom-BSI

University

30 Qs

Exam 2 Review - CS125

Exam 2 Review - CS125

University

31 Qs

แบบทดสอบ embedded system and IoT

แบบทดสอบ embedded system and IoT

12th Grade - University

30 Qs

Binary Trees and Traversals Quiz

Binary Trees and Traversals Quiz

University

30 Qs

Typescript class 02

Typescript class 02

University

26 Qs

Binary Search Tree (BST)

Binary Search Tree (BST)

Assessment

Quiz

Computers

University

Medium

Created by

Bill Arbaoui

Used 18+ times

FREE Resource

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a key characteristic that distinguishes a BST from a regular binary tree?
Every node has exactly one child
The tree has at most 10 nodes
Nodes contain strings only
For each node, values in the left subtree are less than the node's value and values in the right subtree are greater

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In a BST, where would you insert a value that is greater than the root's value?
In the left subtree of the root
In the right subtree of the root
As a new root
Cannot be inserted

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

If a BST has a node with a value of 50, and its right child has a value of 60, which value can be a valid value for the right child's left child?
40
55
65
100

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What can be a direct consequence of repeatedly inserting sorted data (e.g., 1, 2, 3, 4,...) into an initially empty BST?
The BST will be balanced
The BST will be similar to a linked list
The BST will have only left children
The BST will not allow any more insertions

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a valid application for a BST?
Image compression
Keeping a sorted list of numbers in real-time
Sound processing
Video streaming

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

If a node in a BST has no left child, which statement is true?
The node has no children at all
The node's value is the smallest in the tree
The node is guaranteed to be a leaf
None of the above

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In a BST, which traversal method will give a sorted list of values in ascending order?
Pre-order traversal
In-order traversal
Post-order traversal
Level-order traversal

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?