READ Free Dumps For Microsoft- 70-483
Question ID 17094 | You have the following code:
You need to retrieve all of the numbers from the items variable that are greater than 80.
Which code should you use?
|
Option A | Option A
|
Option B | Option B
|
Option C | Option C
|
Option D | Option D
|
Correct Answer | B |
Explanation Explanation: Enumerable.Where
Method (IEnumerable, Func) Filters a sequence of values based on a predicate. Example: List fruits = new List { "apple", "passionfruit", "banana", "mango", "orange", "blueberry", "grape", "strawberry" }; IEnumerable query = fruits.Where(fruit => fruit.Length < 6); foreach (string fruit in query) { Console.WriteLine(fruit); } /* This code produces the following output: apple mango grape */
Question ID 17095 | You need to store the values in a collection.
The solution must meet the following requirements:
✑ The values must be stored in the order that they were added to the collection.
✑ The values must be accessed in a first-in, first-out order.
Which type of collection should you use?
|
Option A | SortedList
|
Option B | Queue
|
Option C | ArrayList
|
Option D | Hashtable
|
Correct Answer | B |
Explanation