1.4.2 Data Structures - Graphs and Trees

1.4.2 Data Structures - Graphs and Trees

12th Grade - University

20 Qs

quiz-placeholder

Similar activities

1 Binary Search Trees

1 Binary Search Trees

University

20 Qs

2.3.1 Graph Traversal & Path Finding Algorithms

2.3.1 Graph Traversal & Path Finding Algorithms

12th Grade - University

20 Qs

Data Structures -Trees & Sorting

Data Structures -Trees & Sorting

University

15 Qs

DSA_Midterm Quiz no. 1

DSA_Midterm Quiz no. 1

University

25 Qs

TREES

TREES

University

20 Qs

DSA_Quiz_3

DSA_Quiz_3

University

20 Qs

MS 101 - Week 16 - Graph

MS 101 - Week 16 - Graph

University

20 Qs

Types of Trees

Types of Trees

University

25 Qs

1.4.2 Data Structures - Graphs and Trees

1.4.2 Data Structures - Graphs and Trees

Assessment

Quiz

Computers

12th Grade - University

Medium

Created by

Robin Smith

Used 188+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many parent nodes are there?

4

5

6

7

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many leaf nodes are there?

4

5

6

7

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following is TRUE about this tree?

This tree is a binary tree only

This tree is a binary search tree

This is a non-binary tree

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What traversal gives out the letters in alphabetical order?

In-order traversal

Pre-order traversal

Post-order traversal

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the order of nodes traversed in a pre-order traversal of this tree?

A, B, C, D, E, F, G, H, I, J

E, B, A, C, D, G, F, I, H, J

A, D, C, B, F, H, J, I, G, E

B, A, C, D, G, F, I, H, J, E

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the order of nodes traversed in a post-order traversal of this tree?

A, B, C, D, E, F, G, H, I, J

E, B, A, C, D, G, F, I, H, J

A, D, C, B, F, H, J, I, G, E

B, A, C, D, G, F, I, H, J, E

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Traversing this tree, the arithmetic expression obtained is a×b + c÷d.

What type of traversal was performed?

In-order

Pre-order

Post-order

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?