Correct option is D
A Queue is a linear data structure in which elements are arranged sequentially and processed in a specific order — First In, First Out (FIFO). This means the element inserted first is the first one to be removed. Common real-world examples include queues at ticket counters or printers.
Important Key Points:
- A queue follows the FIFO (First In, First Out) principle.
- Basic queue operations include enqueue (insertion) and dequeue (deletion).
- Queues are implemented using arrays or linked lists in programming.
Knowledge Booster:
- Both Linear and Non-Linear data structure: Incorrect, as a queue maintains a strict sequential order and does not branch like trees or graphs.
- Structural data structure: This term is not a standard classification in data structures; data structures are generally classified as linear or non-linear.
- Non-linear data structure: Used for data structures like trees and graphs, where data elements are not arranged sequentially.