Binary Search Tree (BST)

Binary Search Tree (BST)

University

•

26 Qs

quiz-placeholder

Similar activities

25 JUNE 21 DBMS FOR COE 6:30 TO 7:30 PM

25 JUNE 21 DBMS FOR COE 6:30 TO 7:30 PM

University

•

24 Qs

Chapter 4-Java Selection & Loops

Chapter 4-Java Selection & Loops

University

•

21 Qs

Information and Convergence Technology

Information and Convergence Technology

12th Grade - University

•

21 Qs

Quiz-1 (The Network)

Quiz-1 (The Network)

University

•

22 Qs

Computer Security

Computer Security

University

•

21 Qs

Spreadsheet

Spreadsheet

9th Grade - Professional Development

•

21 Qs

Computer Pretest1(Arduino Grade8_t1)

Computer Pretest1(Arduino Grade8_t1)

3rd Grade - University

•

25 Qs

System Software (CSC098)

System Software (CSC098)

University

•

22 Qs

Binary Search Tree (BST)

Binary Search Tree (BST)

Assessment

Quiz

•

Computers

•

University

•

Practice Problem

•

Medium

Created by

Bill Arbaoui

Used 18+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?