Binary Search Tree

Binary Search Tree

University

7 Qs

quiz-placeholder

Similar activities

BCSC0006 Trees

BCSC0006 Trees

University

10 Qs

DS-U3-Q1

DS-U3-Q1

University

10 Qs

Binary Search Trees C++

Binary Search Trees C++

University

8 Qs

Trees

Trees

University

10 Qs

Quiz 1

Quiz 1

University

8 Qs

Trees

Trees

University

10 Qs

Binary Search Tree

Binary Search Tree

University

7 Qs

Tree

Tree

University

10 Qs

Binary Search Tree

Binary Search Tree

Assessment

Quiz

Computers

University

Medium

Created by

PANDU WICAKSONO

Used 5+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the left subtree of a node in a Binary Search Tree contain?

Elements with duplicate keys

Elements equal to the node

Elements smaller than the node

Elements greater than the node

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operation is used to find a key in a Binary Search Tree?

remove(x)

insert(x)

update(x)

search(x)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is insertion into a Binary Search Tree done?

Recursively

Using a stack

Using a queue

Iteratively

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the correct algorithm for deletion in a Binary Search Tree?

Find the successor and remove it

Find the predecessor and remove it

Delete the root node

Delete the leaf nodes

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the property of Binary Search Tree that makes searching easy?

Elements are sorted in descending order

Elements are sorted in ascending order

Elements are randomly arranged

Elements are stored in a linked list

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operation is used to insert a new key into a Binary Search Tree?

search(x)

remove(x)

insert(x)

find(x)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the right subtree of a node in a Binary Search Tree contain?

Elements greater than the node

Elements smaller than the node

Elements equal to the node

Elements with duplicate keys