Binary Tree and Binary Search Tree Quiz

Binary Tree and Binary Search Tree Quiz

12th Grade

30 Qs

quiz-placeholder

Similar activities

ATS K9

ATS K9

9th Grade - University

30 Qs

Yr 13 AQA A Level Computer Science - revision

Yr 13 AQA A Level Computer Science - revision

11th - 12th Grade

29 Qs

Data Structures - Trees

Data Structures - Trees

12th Grade

30 Qs

Data Structures

Data Structures

12th Grade

35 Qs

Bits, Bytes, and Binary

Bits, Bytes, and Binary

9th - 12th Grade

25 Qs

Tree Data Structure Quiz

Tree Data Structure Quiz

12th Grade

25 Qs

WJEC Computer Science Unit 3 Data Structures

WJEC Computer Science Unit 3 Data Structures

12th Grade

26 Qs

1.3 Binary Shifts

1.3 Binary Shifts

9th - 12th Grade

25 Qs

Binary Tree and Binary Search Tree Quiz

Binary Tree and Binary Search Tree Quiz

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Vrushali Kondhalkar

Used 2+ times

FREE Resource

30 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

Which traversal method visits the root node first, then the left subtree, and finally the right subtree?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

In which traversal method are the nodes visited in the order: left subtree, root node, right subtree?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the correct order of visiting nodes in postorder traversal?

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

3 mins • 1 pt

Given the inorder traversal of a binary tree as [D, B, E, A, F, C], and the preorder traversal as [A, B, D, E, C, F], what is the postorder traversal?

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 1 pt

Which traversal method is used when a depth-first search algorithm is implemented in a binary tree?

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

3 mins • 1 pt

If the preorder traversal of a binary tree is [F, B, A, D, C, E, G, I, H] and the inorder traversal is [A, B, C, D, E, F, G, H, I], what is the root node of the binary tree?

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 1 pt

Given a binary tree with the inorder traversal [4, 2, 5, 1, 6, 3] and postorder traversal [4, 5, 2, 6, 3, 1], what is the root node?

Evaluate responses using AI:

OFF

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?