Quiz Yourself: Collections
Evaluate your understanding of .NET collection types including lists, FIFO structures, and observable data patterns.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
During the execution of a foreach loop, what is the specific role of the MoveNext() method in the underlying IEnumerator object?
A.
It retrieves the value of the current element and automatically resets the internal pointer to index zero.
B.
It returns the current element to the caller and determines if the element is of the correct generic type.
C.
It advances the internal pointer to the next element and returns a boolean indicating if an item exists.
D.
It immediately terminates the loop if the collection has been modified by an external process or thread.
1 / 14