Pop Quiz 2—all about collections
- What is an element in an array or list?
- What is the index number of the first element in an array or list?
- Can a single array or list store different types of data?
- How can you add more elements to an array to make room for more data?
Don’t forget to check your answers against mine in the Pop Quiz Answers appendix to see how you did!Since collections are groups or lists of items, they need to be accessible in an efficient manner. Luckily, C# has several iteration statements, which we’ll talk about in the following section.