Computer programmers use LIFO and FIFO terms to describe how data is handled, or the data structure. Data must be retrieved in a variety of ways, whether randomly or sequentially, for various processes. Stacks and queues are two types of sequential data structures that follow the LIFO and FIFO concepts, respectively.