1.

Pushing an element into stack already having five elements and stack size of 5, then stack becomes ___________(a) Overflow(b) Crash(c) Underflow(d) User flowThis interesting question is from Stack Operations topic in division Abstract Data Types of Data Structures & Algorithms IThis question was posed to me during an interview for a job.

Answer»

Right answer is (a) OVERFLOW

For explanation: The stack is filled with 5 elements and pushing one more ELEMENT causes a stack overflow. This results in overwriting MEMORY, code and LOSS of unsaved work on the COMPUTER.



Discussion

No Comment Found

Related InterviewSolutions