Which data structure is suitable to represent hierarchical relationship between elements?

Which data structure is suitable to represent hierarchical relationship between elements?

  1. a) Stack
  2. b) Queue
  3. c) List
  4. d) Tree

From the NPCBL Executive Trainee (CSE) 2023 – Preliminary exam, question 18 of 39.

More from this paper