Nhóm 3 CSD201 SLIDE 8-9-10

Nhóm 3 CSD201 SLIDE 8-9-10

University

7 Qs

quiz-placeholder

Similar activities

Binary Search Trees C++

Binary Search Trees C++

University

8 Qs

DS Quiz1

DS Quiz1

University

10 Qs

Quiz on Machine Thinking

Quiz on Machine Thinking

University

10 Qs

Distributed Systems

Distributed Systems

University

11 Qs

Kuis 2 - ASD -A

Kuis 2 - ASD -A

University

10 Qs

BCSC0006 Trees

BCSC0006 Trees

University

10 Qs

DS-U3-Q1

DS-U3-Q1

University

10 Qs

Tree

Tree

University

10 Qs

Nhóm 3 CSD201 SLIDE 8-9-10

Nhóm 3 CSD201 SLIDE 8-9-10

Assessment

Quiz

Computers

University

Hard

Created by

Hi Tv

Used 1+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is Preorder Traversal?

A. Visiting a node after visiting its children

B. Visiting a node before visiting its children

C. Visiting nodes level by level

D. Visiting the right child before the left child

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the final step in Postorder Traversal?



A. Visiting the parent node

B. Visiting child nodes

C. Visiting nodes level by level

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

  1. In a pre-order traversal, in what order are the nodes visited?

  • Left child → Right child → Root

  • Root → Left child → Right child

  • Left child → Root → Right child

  • Right child → Left child → Root

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

  1. What is the degree (order) of a node in a tree?

  • The number of ancestors of the node.

  • The number of edges from the node to the root.

  • The number of non-empty children of the node.

  • The number of leaf nodes in the subtree of the node.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

  1. How does Breadth-First Traversal differ from Preorder Traversal?

  1. It visits all nodes at the same level before going deeper

  1. It visits the root first, then recursively visits child nodes

  1. It visits nodes in random order

  1. There is no difference

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a common application of Breadth-First Traversal?


A. Breadth-First Search

B. Computing total directory size

C. Printing structured documents

D. Checking tree symmetry

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

  1. Which of the following is a correct pre-order traversal for the tree shown below?
    (Tree example: Root = F, Left subtree = B, Right subtree = G, B's children = A, D, G's child = I, D's children = C, E, I’s child = H)

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

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

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

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