C Sharp (C#) - LINQ Fundamentals
Which of the following is the correct way to group a list of integers by their value modulo 5 using LINQ in C#?
n % 5.GroupBy(n => n % 5). Other options use division, multiplication, or addition which do not group by remainder.n % 5 [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions