Back to marketplace

Stacks

No description yet. This curated deck is ready for daily study.

Total cards: 10•Content version: v3•Public deck•Updated: 8/1/2026

Card preview (10)

#1
Front (Question)

What is a stack?

Back (Answer)

An abstract data type that holds an ordered linear sequence of items

#2
Front (Question)

What structure does a stack follow?

Back (Answer)

LIFO (Last in fist out)

#3
Front (Question)

What does push(data) do?

Back (Answer)

Adds an element to the top of a stack

#4
Front (Question)

What does pop() do?

Back (Answer)

Removes an element from the top of the stack

#5
Front (Question)

What does peek() do?

Back (Answer)

Returns a copy of the top element of a stack without removing it

#6
Front (Question)

What does is_empty do?

Back (Answer)

Checks whether a stack is empty

#7
Front (Question)

What does is_full do?

Back (Answer)

Checks whether a stack is at maximum capacity when stored is static

#8
Front (Question)

What are stacks main operations?

Back (Answer)

pushing items onto and popping items off the stack

#9
Front (Question)

What causes a stack overflow?

Back (Answer)

Continuously adding items to an statically implemented array

#10
Front (Question)

What is needed to implement dynamic stacks?

Back (Answer)

Linked lists, additional tracking variables