Start learning →

Adding an element to a stack that is already full raises an exception called:

AOverlook
BOverflow
COverload
DOverride
Answer & Solution
Correct answer: B. Overflow
1. A stack has a limit to how many elements it can hold. 2. Pushing past that limit is an error. 3. Trying to add an element to a full stack results in an exception called overflow. 4. So the answer is overflow. _Source: syllabus Computer Science, Ch 3 'Stack' and Ch 4 'Queue'_
Practise this question with Quill — IGNOU MCA →

Keep practising Stacks and Queues

Browse all Stacks and Queues questions for IGNOU MCA, or explore more Computer Science topics.

Start a Stacks and Queues lesson →
Related questions