Which basic data structure operates on the principle of “First In, First Out” (FIFO)?

  • Linked List
  • Queue
  • Stack
  • Tree
A Queue operates on the principle of "First In, First Out" (FIFO), meaning that the first element added is the first one to be removed. This makes it suitable for scenarios where elements are processed in the order they are added, such as in print spooling or task scheduling.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *