4.6k views
0 votes
Select all properties of a stack. is a LIFO data structure adds an item to the top can remove an item from both ends has a bottom and a top removes an item from the top is a FIFO data structure

User NightMICU
by
7.0k points

1 Answer

3 votes

Final answer:

A stack is a LIFO data structure where items are added and removed from the top.

Step-by-step explanation:

A stack is a Last-In-First-Out (LIFO) data structure where items are added and removed from the top. It does not have a bottom and can only remove items from the top. It is not a FIFO data structure, as the last item added is the first one to be removed.

User Maggy Hillen
by
8.2k points