Which of the following principle does Array use?

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

Which of the following principle does Array use?

(A). Linear data structure

(B). FIFO

(C). Hierarchical data structure

(D). None of these

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
Arraylinear data structure without an inherent ordering principle
StackLIFO
QueueFIFO
Linked Listlinear data structure without an inherent ordering principle
Treehierarchical data structure without an inherent ordering principle

Example

Output

Please Enter 5 numbers:
3
4
5
7
1
You entered:
3
4
5
7
1