Tree Traversals

Tree Traversals

University

15 Qs

quiz-placeholder

Similar activities

Data Structure and Algorithms Semi-Final Examination

Data Structure and Algorithms Semi-Final Examination

University

13 Qs

Trees

Trees

University

16 Qs

Quiz Struktur Data

Quiz Struktur Data

9th Grade - University

20 Qs

Trees in Data Structure

Trees in Data Structure

University

15 Qs

BCSC0006 Trees

BCSC0006 Trees

University

10 Qs

Tree

Tree

University

10 Qs

Data Structures using C

Data Structures using C

12th Grade - University

20 Qs

DSC UNIT 5

DSC UNIT 5

University

15 Qs

Tree Traversals

Tree Traversals

Assessment

Quiz

Computers

University

Medium

Created by

Jordan Burgess

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the process of walking through a tree called?

Branching

Traversal

Computing

Manipulation

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which traversal method processes the root before its subtrees?

Post-order traversal

In-order traversal

Pre-order traversal

Breadth-first traversal

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which traversal method processes the root in between its subtrees?

Breadth-first traversal

Post-order traversal

In-order traversal

Pre-order traversal

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which traversal method processes the root after its subtrees?

Post-order traversal

In-order traversal

Breadth-first traversal

Pre-order traversal

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which traversal method is also known as level traversal?

Pre-order traversal

Post-order traversal

Breadth-first traversal

In-order traversal

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the stopping case for recursion in tree traversal functions?

When the root pointer is 0

When the left subtree is empty

When the right subtree is empty

When all nodes have been visited

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the order of processing in pre-order traversal?

Process left subtree, process right subtree, process root

Process right subtree, process left subtree, process root

Process left subtree, process root, process right subtree

Process the root, process left subtree, process right subtree

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?