18
QuizMultiple Choice

Use Data Structures — Cumulative exam

Question 18 • Introduction to Information Technology - EL3701

What behavior do elements in a stack follow?

Answer
A
first in, last out, or FILO behavior
B
last in, first out, or LIFO behavior
C
first in, first out, or FIFO behavior
D
last in, last out, or LILO behavior

Explanation

A stack removes the most recently added element first, like taking the top plate off a pile. This is called last in, first out (LIFO) behavior, so the correct choice is “last in, first out, or LIFO behavior.”

AI-written and checked against the verified answer.

Previous
Next