wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Threaded Binary Tree

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

How are Threads typically implemented?

a)

Using a separate thread array

b)

By overloading pointer fields with flags

c)

Storing thread IDs in nodes

d)

Via external hash table

2.

The inorder predecessor of a node in a right threaded binary tree can be found by:

a)

following the left thread

b)

Traversing the left subtree

c)

following the right thread

d)

checking the parent pointer

3.

Which traversal in a threaded binary tree does NOT require a stack or recursion?

a)

Level-Order Traversal

b)

Preorder Traversal

c)

Inorder Traversal

d)

Postorder Traversal

4.

In a threaded binary tree , a thread is a:

a)

Pointer to the root node

b)

Pointer to the child node

c)

Pointer to the ancestor node

d)

Pointer to the inorder successor/predecessor

5.

What is the advantage of a threaded binary tree over a standard binary tree?

a)

Faster insertion and deletion

b)

No need for extra memory fro stack/recursion in traversal

c)

Better balancing of tree

d)

Reduced height of the tree

6.

Which type of treaded binary tree contains thread only for NULL right pointer?

a)

Fullu Threaded

b)

Single Threaded(Left)

c)

Double Threaded

d)

Single Threaded(Right)

7.

In a double threaded binary tree, threads are used to point to

a)

Only left children

b)

Only right children

c)

Both inorder successor and predecessor

d)

Parent nodes

8.

What is the primary purpose of using threads in a threaded binary tree?

a)

To simplify the insertion process

b)

To increase the height of the tree

c)

To facilitate faster traversal

d)

To reduce the number of nodes

9.

In a single threaded binary tree, which pointer is typically used for threading?

a)

Left child pointer

b)

Both child pointers

c)

Right child pointer

d)

Parent pointer

10.

Which traversal method can be performed without using additional memory in a threaded binary tree?

a)

Inorder Traversal

b)

Postorder Traversal

c)

Preorder Traversal

d)

Level-Order Traversal