‹ Back to the paper
Question 1(v)
1 mark
Computer ScienceISC 2022 Computer Science - Specimen paper (Semester 2), Paper 1Short answerData structures
Answer the following question.
State the principle by which the stack data structure works.
Answer
Answer
A stack works on the LIFO (Last In First Out) principle: the element inserted last is the first one to be removed.