Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
26.1.1. Overview of Trees
This section
Practice test
11 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
4 cards from this lesson. Good the night before a test.
Try these first
- 1.
What is the top node of a tree called?
Hint
It's where everything starts.
- 2.
What do we call a node that has no children?
Hint
It's at the end of the branches.
- 3.
What is the topmost node in a tree called?
- Root
- Leaf
- Internal Node
Hint
It's the crown of the tree!
- 4.
True or False: A leaf node can have children.
- True
- False
Hint
Remember what makes a node a leaf.
- 5.
Given a tree with a root node A, two internal nodes B and C, and four leaf nodes D, E, F, and G, create a diagram showing depth and height.
Hint
Visualize the branches and how far down they go.
- 6.
Discuss how you would implement a tree structure to represent a company hierarchy. What nodes would represent leadership levels?
Hint
Think about how companies are organized in levels.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
1 more question available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting