What is the main difference between the Stack and the Queue abstract data types?

Queues are FIFO (first in, first out) data types. That is, the first object to be queued is the first objected to be dequeued. Stacks are LIFO (last in, first out) data types, meaning that the last object pushed onto the stack is the first object to be popped from the stack.

RH

Related Computing A Level answers

All answers ▸

Describe an IDE and its features in programming. (3 Marks)


What is the time complexity of Bubble Sort?


What are the benefits of using thin clients.


Project Euler Question 3: What is the largest prime factor of the number 600851475143?