1
AssignmentDropdown

Use Conditional Statements

Question 1 • VA-Information Technology Fundamentals B

Select the correct answer from the drop-down list.A stack is a type of list in which .

Answer
A
the last element in the sequence is the first to be removed
B
the first element in the sequence is the first to be removed
C
the last element in the sequence is the last to be removed
D
the first element in the sequence is the last to be removed

Explanation

A stack follows the last-in, first-out (LIFO) rule: the most recently added element is removed first. Therefore, the last element in the sequence is the first to be removed, which matches choice A.

AI-written and checked against the verified answer.

Next