Question: what is the difference between internal iteration and external iteration?
Answer: An external iterator is active, an internal is passive. When the client (i.e. the programmer) controls the iteration, the iterator is called external iterator. When the iterator controls it, it is called an internal iterator. ... Internal iteration is less error prone, more readable, and requires less code.