Which of the following principle does tree use?

By: Prof. Dr. Fazal Rehman | Last updated: February 3, 2024

Which of the following principle does tree use?

(A). hierarchical data structure

(B). FIFO only

(C). Linear data structure

(D). None of these

Question’s Answer: hierarchical data structure

FIFO means first element added to the queue is the first one to be removed from queue.

Data Structure Principle
Linked List linear data structure without an inherent ordering principle
Array linear data structure without an inherent ordering principle
Stack LIFO
Queue FIFO
Tree hierarchical data structure without an inherent ordering principle

Example

Output

Binary tree elements: 4 2 5 1 6 3 7

All Copyrights Reserved 2025 Reserved by T4Tutorials