Which of the following principle does Linked List use?

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

Which of the following principle does Linked List use?

(A). Linear data structure

(B). FIFO only

(C). Both of these

(D). hierarchical data structure

Question’s Answer: Linear data structure

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

Data StructurePrinciple
Linked Listlinear data structure without an inherent ordering principle
Arraylinear data structure without an inherent ordering principle
StackLIFO
QueueFIFO
Treehierarchical data structure without an inherent ordering principle

Example

 

Output

7 4 2 9
7 is removed.
4 is removed.
2 is removed.
9 is removed.
List is empty!
List is empty!
List is empty!