Start learning →

Order what leaves the stack

Exercise and reference answers

Steps
  1. The most recent push
  2. The one before it
  3. The one before that
  4. The second element
  5. The very first push
Instructions
Tap the elements in the order they are popped out.

Explanation

_Source: syllabus Computer Science, Ch 3 'Stack' and Ch 4 'Queue'_
Continue learning with Quill →

Browse more IGNOU MCA questions and exercises →