Free practice test
Select and SelectMany: Interview Practice
Ten interview-focused questions on projection, flattening, parent context, empty and null children, filtering grain and indexed Select. Uses LINQ to Objects and C# 9 or later with the usual System, System.Collections.Generic and System.Linq imports. Unless stated, inputs are non-null and are not modified concurrently. Review the explained answers after submitting.
- Answers save as you go. Move between questions freely, and mark any to come back to.
- The clock starts when you begin, and the test submits itself at 00:00.
- Keyboard: press A–D to choose an option; ← and → move between questions.
- Questions
- 10
- Time
- 15 min
- Right answer
- +1
- Wrong answer
- 0
10 marks in all
Checking your account so your result is saved correctly.
From the lesson Select vs SelectMany in LINQ to Objects: projection or flattening