Multiple choice

_____ are lists whose elements are ordered according to the time when they are added to them?

  1. Stacks and queues

  2. Stacks and arrays

  3. Queues and arrays

  4. Stacks and linked list

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Stacks follow Last-In-First-Out (LIFO) order where the most recently added element is accessed first, while queues follow First-In-First-Out (FIFO) where the oldest element is processed first. Both organize elements by arrival time. Arrays and linked lists are storage structures without inherent time-based ordering.