Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CC 104 Quiz

Total questions: 17

Worksheet time: 13mins

Name
Class
Date
1.

A tree data structure is a linear data structure used to organize data.

a)

False

b)

True

2.

Tree traversal is the process of visiting each node in a tree exactly once in a specific order.

a)

False

b)

True

3.

In a tree, nodes are connected by edges in a hierarchical relationship.

a)

False

b)

True

4.

Since a tree is a linear data structure, there is only one way to traverse it.

a)

False

b)

True

5.

What is a tree data structure?

a)

A linear collection of data elements

b)

A hierarchical structure used to organize data

c)

A structure where each node has exactly one child

d)

 A simple list of numbers

6.

What is the purpose of tree traversal?

a)

To delete all nodes in a tree

b)

To visit each node exactly once in a specific order

c)

To sort the nodes alphabetically

d)

To count the total number of edges

7.

Which of the following is NOT a standard tree traversal technique?

a)

Inorder Traversal

b)

Preorder Traversal

c)

Random Traversal

d)

 Level Order Traversal

8.

 Which traversal method would you use to explore all nodes at the same depth before moving to the next level?

a)

Inorder Traversal

b)

Postorder Traversal

c)

Preorder Traversal

d)

Level Order Traversal

9.

A hierarchical data structure where nodes are connected by edges.

(a)  

10.

The process of visiting each node in a tree exactly once in a specific order.

(a)  

11.

A tree traversal method that follows the order:
Left -> Root -> Right.


(a)  

12.

A tree traversal method that processes the root node before its children.

(a)  

13.

Enumerate the four main tree traversal techniques

(a)  

14.

Enumerate the three traversal techniques that fall under Depth-First Search (DFS).

(a)  

15.

Enumerate the correct visiting sequence for a Preorder Traversal.

(a)  

16.

Enumerate the correct visiting sequence for a Postorder Traversal.

(a)  

17.

Give me the Preorder Traversal (4 points only)

(a)