Arrays and Linked Lists - Typical Problems

Download Q&A
Q. In a stack implemented using an array, what happens when you try to push an element onto a full stack?
  • A. The element is added
  • B. The stack overflows
  • C. The stack shrinks
  • D. The element is ignored
Q. In which scenario would you prefer a queue over a stack?
  • A. When you need to access the last element
  • B. When you need to process elements in the order they were added
  • C. When you need to delete elements randomly
  • D. When you need to access elements by index
Showing 1 to 2 of 2 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely