Questions
Answer the following questions to test your knowledge of this chapter:
- List the different namespace collections.
- What is Big O notation used for?
- What does algorithmic efficiency measure?
- Is it preferable to use
IList<T>
orList<T>
in terms of instantiation speed? - Should we use collections or arrays?
- What does an indexer do?
- Which method of iteration is fastest on an in-memory collection between
IEnumerable<T>
andIEnumerator<T>
? - In terms of memory and speed performance, what database query method performs best?
- When building a collection using iteration, what is the quickest way to build the collection up and return the results?