wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Trees and BST

Total questions: 9

Worksheet time: 3mins

Name
Class
Date
1.

Кой от тези методи за обхождане на дърво се използва за извеждане на съдържанието на двоично дърво във възходящ ред?

a)

Pre-Order

b)

In-Order

c)

Post-Order

d)

Bitcoin

2.

A tree is composed of ____ connected by edges or lines.

a)

Leafs

b)

Root Node

c)

Fruit

d)

Nodes

3.

Това валидно двоично дърво за търсене ли е?

a)

ДА

b)

НЕ

4.

A Kind of tree where every node in a tree can have at most two children.

a)

Tree

b)

Binary Search Tree(BST)

c)

Binary Tree

d)

Graph

5.

Какъв е броят на листата в дървото

a)

1

b)

4

c)

5

d)

6

6.

In this tree, where would the new value "7" be placed?

a)

On the right "leaf" of "6"

b)

On the left "leaf" of "15"

c)

On the left "leaf" of "4"

d)

On the left "root" and Over the top of the current number "5"

7.

In a Binary Tree with N nodes, minimum possible height or the minimum number of levels is?

a)

2^N

b)

Log2(N+1)

c)

N+1

d)

N^2

8.

Кое обхождане е подходящо, ако искаме да отпечатаме елементите по нива

a)

In-order

b)

Pre-order

c)

DFS

d)

BFS

9.

Ако обходим следното дърво в ширина (BFS). То правилен ли ще бъде следния изход: 0 2 1 5 4 3 9 7

a)

ДА

b)

НЕ