Stacks (OCR A-Level Computer Science): Flashcards

📚Flashcards
Stacks
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

14 cards from this deck

Show

Data structure principle used by stacks

LIFO (Last In, First Out)

What does LIFO stand for?

Last In, First Out

Stack operation that adds item to top

Push

Stack operation that removes item from top

Pop

Stack operation: view top without removing

Peek

Stack operation: check if empty

IsEmpty

Stack operation: check if at max capacity

IsFull

Error when pushing onto a full stack

Stack Overflow

Error when popping from an empty stack

Stack Underflow

Data structure for dynamic stack implementation

Linked list

Data structure for static stack implementation

Array

What does a stack store when managing function calls?

Return addresses

Data structure that uses FIFO (opposite of stack)

Queue

Initial value of top pointer in array-based stack

-1

Explore OCR A-Level Computer Science Revision Notes by Topics

Explore OCR A-Level Computer Science Model Answers by Topics

Explore OCR A-Level Computer Science Quizzes by Topics

Explore OCR A-Level Computer Science Exam Questions by Topics

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.