Binary Search Tree (BST)

Binary Search Tree (BST)

University

•

26 Qs

quiz-placeholder

Similar activities

CS 316 - Web Systems and Technologies 2( Midterm Exam)

CS 316 - Web Systems and Technologies 2( Midterm Exam)

University

•

21 Qs

kuis 4

kuis 4

University

•

22 Qs

Data Structure(FINAL)

Data Structure(FINAL)

University

•

25 Qs

Html Basico1

Html Basico1

University

•

23 Qs

Inside a computer

Inside a computer

University

•

23 Qs

computer science

computer science

KG - Professional Development

•

23 Qs

BTEC Coding & Logic

BTEC Coding & Logic

12th Grade - Professional Development

•

24 Qs

Pig Quiz-1

Pig Quiz-1

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?

Discover more resources for Computers