Complete the code to count the number of elements in the list.
int count = numbers.[1]();The Count() method returns the number of elements in the list.
Complete the code to calculate the sum of all elements in the list.
int total = numbers.[1]();The Sum() method adds all the numbers in the list together.
Fix the error in the code to calculate the average of the list elements.
double avg = numbers.[1]();The Average() method calculates the mean value of the list elements.
Fill both blanks to create a dictionary with words as keys and their lengths as values.
var lengths = new Dictionary<string, int> { { [1], [2] } };Use the word itself as the key and its length as the value.
Fill all three blanks to create a dictionary comprehension that maps uppercase words to their lengths, including only words longer than 4 characters.
var result = words.Where(word => word.Length [1] 4).ToDictionary([2] => [3], word => word.Length);
Filter words longer than 4, then map each word's uppercase form as key and length as value.