0
0
Intro to Computingfundamentals~5 mins

Trees and hierarchical data in Intro to Computing - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a tree in computing?
A tree is a way to organize data where items are connected like branches. It starts with one main item called the root, and from there, it splits into smaller parts called nodes, like branches on a real tree.
Click to reveal answer
beginner
What is a root node?
The root node is the very first node in a tree. It is the starting point from which all other nodes branch out, just like the trunk of a real tree.
Click to reveal answer
beginner
Explain parent and child nodes in a tree.
In a tree, a parent node is a node that has one or more nodes connected below it. These connected nodes are called child nodes. Think of a parent as a boss and children as workers reporting to that boss.
Click to reveal answer
beginner
What is a leaf node?
A leaf node is a node that does not have any children. It is like the tip of a branch on a tree with no smaller branches coming out from it.
Click to reveal answer
intermediate
How is hierarchical data represented using trees?
Hierarchical data is shown as a tree where each level represents a rank or category. The top level is the root, and each lower level shows more detailed parts, like a family tree showing grandparents, parents, and children.
Click to reveal answer
What is the top node of a tree called?
ARoot node
BLeaf node
CChild node
DBranch node
Which node has no children?
ARoot node
BLeaf node
CParent node
DSibling node
In a tree, what do we call nodes directly connected below a parent node?
AChildren
BSiblings
CRoots
DLeaves
Which of the following best describes hierarchical data?
AData arranged randomly
BData arranged in a flat list
CData arranged in levels like a tree
DData arranged in a circle
What is the relationship between parent and child nodes?
AThey are not connected
BThey are the same node
CChild node is above parent node
DParent node is above child node in the tree
Describe the main parts of a tree data structure and how they relate to each other.
Think about how a family tree is organized.
You got /5 concepts.
    Explain how hierarchical data can be visualized using a tree and give a real-life example.
    Imagine organizing files on your computer or a family tree.
    You got /4 concepts.