Describe a stack data structure.

A stack is a LIFO (Last In First Out) data structure. 
Analogous to a stack of plates, every new data entry is placed (or pushed) onto the top of the stack, and to get the the data below it, you must first remove all the data above it.

MT

Related Computing A Level answers

All answers ▸

What is the difference between HTML, CSS and JavaScript


Why indentation is important in Python and what is the scope of a global variable?


Write a small program, in pseudocode or otherwise, that demonstrates a recursive algorithm. Write a small explanation of how recursion is used in your program.


What is the difference between compile-time errors and runtime errors?