CSE 2221 A Grade Exam | Study Questions Solved 100% Correc
Why is the container class called Stack? - ANSWER It follows the same sort of organization and manipulation type that a stack in the program execution would perform LIFO (last-in-first-out) LIFO - ANSWER last in first out How is a Stack different than the queue? - ANSWER it is like a "dual" A queue is first in first out, while stack is last in first out What are the three methods of StackKernel? - ANSWER push pop length What are the three methods of the Stack Interface? - ANSWER top replaceTop flip
Written for
- Institution
- CSE 2221
- Course
- CSE 2221
Document information
- Uploaded on
- May 25, 2024
- Number of pages
- 13
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
Also available in package deal