
Nhóm 3 CSD201 SLIDE 8-9-10
Authored by Hi Tv
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
In a pre-order traversal, in what order are the nodes visited?
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
What is the degree (order) of a node in a tree?
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
How does Breadth-First Traversal differ from Preorder Traversal?
How does Breadth-First Traversal differ from Preorder Traversal?
It visits all nodes at the same level before going deeper
It visits the root first, then recursively visits child nodes
It visits nodes in random order
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
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)
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?