CSE 2221 Final Exam | 80 Questions with 100% Correct Answers | Verified | Latest Update 2024
Why is the container class called Stack? - 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 - last in first out How is a Stack different than the queue? - 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? - push pop length What are the three methods of the Stack Interface? - top replaceTop flip What mathematical model is Stack modeled by? - Modeled by mathematical string of T How many constructors for Stack? - only 1, which is empty, creates an empty stack What does the Stack method void push(T x) do?
Written for
- Institution
- CSE 2221
- Course
- CSE 2221
Document information
- Uploaded on
- January 5, 2024
- Number of pages
- 12
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cse 2221 final exam 80 questions with 100 corre
Also available in package deal