Start learning →

Overflow or underflow

Exercise and reference answers

Categories
  1. Overflow
  2. Underflow
Questions
  1. Answer
    Overflow
    Question
    Push onto a full stack
  2. Answer
    Underflow
    Question
    Pop from an empty stack
  3. Answer
    Overflow
    Question
    Enqueue beyond capacity
  4. Answer
    Underflow
    Question
    Dequeue an empty queue
  5. Answer
    Overflow
    Question
    No space left to add
  6. Answer
    Underflow
    Question
    Nothing left to remove
Instructions
Pull each case towards the exception it raises.

Explanation

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

Browse more IGNOU MCA questions and exercises →