Complete the code to declare a list of integers.
List<int> numbers = new List<[1]>();The generic type parameter for the list should be int to create a list of integers.
Complete the code to add an element to the list.
numbers.[1](5);
Append which is not a method of List in C#.Push which is used in stacks, not lists.The Add method is used to add an element to the end of a List in C#.
Fix the error in accessing the first element of the list.
int first = numbers[[1]];List indexing in C# starts at 0, so the first element is at index 0.
Fill both blanks to create a list of strings and add a value.
List<[1]> names = new List<[2]>(); names.Add("Alice");
To create a list of strings, the generic type parameter must be string in both places.
Fill all three blanks to create a list, add an element, and get the count.
List<[1]> items = new List<[2]>(); items.[3](10); int count = items.Count;
Remove instead of Add to add elements.string as the generic type when adding integers.The list is of integers, so the generic type is int. To add an element, use the Add method.
