Which of the following data structures is used for implementing a hierarchical…
2025
Which of the following data structures is used for implementing a hierarchical relationship between different elements?
Answer: D. Tree — Trees represent hierarchical relationships between various elements or data. Each node in a tree can be connected to multiple nodes and is used to represent…
- A.
Stack
- B.
Queue
- C.
Array
- D.
Tree
Attempted by 1045 students.
Show answer & explanation
Correct answer: D
Trees represent hierarchical relationships between various elements or data. Each node in a tree can be connected to multiple nodes and is used to represent the non-linear data structure.
Loading lesson…