Skip to content
Quiz · Lambdas and LINQ · lesson 10 of 10

Quiz — when a query runs

What does the program print?

C#
List<int> nums = [1, 2, 3];
var big = nums.Where(n => n > 1);
List<int> copy = big.ToList();
nums.Add(4);
Console.WriteLine($"{big.Count()} {copy.Count}");