Fill in the blanks in each of the following statements: a) A(n) ________is used to iterate through

Question:

Fill in the blanks in each of the following statements:

a) A(n) ________is used to iterate through a collection but cannot remove elements from the collection during the iteration.

b) IEnumerator method ________advances the enumerator to the next item.

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

d) C# 6’s ________directive allows access to a class’s static members without fully qualifying their names.

e) The ________statement implicitly obtains an enumerator via the GetEnumerator method and uses the enumerator’s MoveNext method and Current property to traverse the collection.

f) A(n) ________is a collection of key–value pairs.

g) ________allow you to define simple, anonymous methods—that is, methods that do not have names and that are defined where they are assigned to a delegate or passed to a delegate parameter.

h) With ________you specify how to iterate, not the library.

i) With ________the library determines how to iterate through a collection.

j) In functional programming, a(n) ________operation results in a new collection containing only the elements that satisfy a condition.

k) In functional programming, a(n) ________operation results in a new collection in which each element of the original collection is mapped to a new value (possibly of a different type). The new collection has the same number of elements as the collection that was mapped.

l) In functional programming, a(n) ________operation combines the elements of a collection into a single new value, typically using a lambda that specifies how to combine the elements.

m) To initiate parallel processing with PLINQ, invoke IEnumerable extension method ________(from class ParallelEnumerable), which returns a(n) ________.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Visual C# How to Program

ISBN: 978-0134601540

6th edition

Authors: Paul J. Deitel, Harvey Deitel

Question Posted: