Entries in a stack are “ordered”. What is the meaning of this statement?
A. A collection of stacks is sortable
B. Stack entries may be compared with the ‘<‘ operation
C. The entries are stored in a linked list
D. There is a Sequential entry that is one by one
Answer:D
Entries in a stack are “ordered”. What is the meaning of this statement?
A. A collection of stacks is sortable B. Stack entries may be compared with the ‘<‘ operation C. The entries are stored in a linked list D. There is a Sequential entry that is one by one
Explanation: In stack data structure, elements are added one by one using push operation. Stack follows LIFO Principle i.e. Last In First Out(LIFO).