What is the principle difference in behavior between a stack and a queue?
A) a stack reverses order whereas a queue preserves order
B) a stack does nothing whereas a queue can preserve and reverse order
C) there is no difference
D) a stack preserves order whereas a queue reverses order
Correct Answer:
Verified
Q2: Stacks operate as _.
A) Last Out, First
Q3: A _ can be used to reverse
Q4: A pop operation on a Stack returns
Q5: To add an element to a stack
Q6: Which of the following is the correct
Q7: Elements in a collection are typically organized
Q8: A polymorphic reference uses _, not the
Q9: In an array implementation of a Stack,
Q10: The variable top in the array implementation
Q11: A _ is an object that gathers
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents