Understanding Binary Trees and Insertion

Understanding Binary Trees and Insertion

12th Grade

8 Qs

quiz-placeholder

Similar activities

Binary Search Tree (Recap 1)

Binary Search Tree (Recap 1)

11th Grade - University

13 Qs

Test-1 S.Y.B.Sc.(CS)Div.-A DS-II

Test-1 S.Y.B.Sc.(CS)Div.-A DS-II

12th Grade

12 Qs

Heap and Search Tree

Heap and Search Tree

12th Grade

11 Qs

Binary Search Tree Quiz No 1

Binary Search Tree Quiz No 1

12th Grade

10 Qs

C++ Trees Quiz

C++ Trees Quiz

12th Grade

11 Qs

Threaded Binary Trees Quiz

Threaded Binary Trees Quiz

12th Grade

10 Qs

Trees

Trees

12th Grade

10 Qs

Uji Pemahaman Algoritma Tree dan Graf

Uji Pemahaman Algoritma Tree dan Graf

12th Grade

13 Qs

Understanding Binary Trees and Insertion

Understanding Binary Trees and Insertion

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Matthew Wemyss

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a property of a binary tree?

Each node has at most three children.

Each node has at most two children.

Each node has exactly two children.

Each node has at least one child.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a tree traversal method?

In-order

Pre-order

Post-order

Reverse-order

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in inserting a node into a binary search tree?

Compare the node with the root.

Insert the node at the root.

Traverse to the leftmost node.

Traverse to the rightmost node.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an application of binary trees?

Network routing

Sorting algorithms

Expression parsing

All of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a binary search tree, where is the smallest element located?

Rightmost node

Leftmost node

Root node

Any leaf node

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main advantage of using a binary search tree over a linked list?

Faster insertion

Faster search

Easier to implement

Uses less memory

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a characteristic of a binary search tree?

Left subtree contains nodes with keys less than the root.

Right subtree contains nodes with keys greater than the root.

All nodes have two children.

In-order traversal results in sorted order.

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of performing a post-order traversal on a binary tree?

Root, Left, Right

Left, Right, Root

Right, Root, Left

Left, Root, Right