PrepAway - Latest Free Exam Questions & Answers

Which of the following is TRUE with regards to the required code?

You work as a developer at ABC.com. The ABC.com network consists of a single domain named
ABC.com.
You have received instructions to create a custom collection for ABC.com. Objects in the
collection must be processed via a foreach loop.
Which of the following is TRUE with regards to the required code?

PrepAway - Latest Free Exam Questions & Answers

A.
The code should implement the ICollection interface.

B.
The code should implement the IComparer interface.

C.
The code should implement the IEnumerable interface.

D.
The code should implement the IEnumerator interface.

Explanation:

3 Comments on “Which of the following is TRUE with regards to the required code?

  1. Chinmay says:

    If keeping a track of state is required then it is preferable to use IEnumerator.Since just iterating through elements is mentioned so in this case it IEnumerable
    C : IEnumerable




    1



    0

Leave a Reply