O'Reilly logo

Visual C#® 2012: How to Program, Fifth Edition by Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Self-Review Exercises

21.1 Fill in the blanks in each of the following statements:

a) A(n) _______ is used to walk through a collection but cannot remove elements from the collection during the iteration.

b) Class _______ provides the capabilities of an arraylike data structure that can resize itself dynamically.

c) An element in an ArrayList can be accessed by using the ArrayList’s _______.

d) IEnumerator method _______ advances the enumerator to the next item.

e) If the collection it references has been altered since the enumerator’s creation, calling method Reset will cause a(n) _______.

21.2 State whether each of the following is true or false. If false, explain why.

a) Class Stack is in the System.Collections namespace.

b) A Hashtable stores ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required