1.

Which condition among the following might result in memory exception?(a) False if conditions(b) Nested if conditions that are all false(c) Infinite loops(d) Loop that runs exactly 99 times

Answer» The correct answer is (c) Infinite loops

To explain I would say: The infinite loops doesn’t stop running once started. There must be a way to stop the loop but that is always an improper termination. Infinite loops may keep on using more memory and hence would result in memory error.


Discussion

No Comment Found

Related InterviewSolutions