Multiple Choice
Which of the following statements is false
A) Prior to C# 6, you could use a fully braced collection initializer to initialize a Dictionary’s key–value pairs. For example, if you had a Dictionary
var toolInventory = new Dictionary
{"Hammer", 13},
{"Saw", 17},
{"Screwdriver", 7}
};
B) The code in a) is shorthand for creating the Dictionary then using its Add method to add each key–value pair.
C) C# 6’s index initializers enable you to clearly indicate the key and the value in each key–value pair as follows:
var toolInventory = new Dictionary
["Hammer"] = 13,
["Saw"] = 17,
["Screwdriver"] = 7
};
D) Prior to C# 6, any collection that defined an Add extension method could be initialized with a collection initializer. As of C# 6, the compiler also supports collection initializers for any collection that has an Add instance method.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Which of the following statements about functional
Q2: Class Enumerable provides static method _ to
Q3: Covariance works only with reference types that
Q4: All arrays implicitly inherit from which generic
Q6: A _ is the general term for
Q7: Which of the following statements is false<br>A)
Q8: Which of the following statements is false<br>A)
Q9: Which of the following statements is false<br>A)
Q10: Which of the following is not a
Q11: The compiler converts LINQ queries into calls