Lesson 33 of 34 · LINQ & Errors
Quiz: LINQ, Exceptions and Nullable Types
The final chapter gave you three professional tools: LINQ for expressive data queries, exceptions for handling failure, and nullable types for code that says clearly when a value might be missing.
These questions test the details that matter in real code — which LINQ methods throw, where cleanup belongs, and how the null operators combine. Then only the final boss stands between you and the summit of the Sharpforge Citadel.
What this quiz covers
The questions check what you learned in the LINQ & Errors chapter of Learn C#. Not sure about a topic? Review its lesson first:
- LINQ in C#: Where, Select, OrderBy, GroupBy and Aggregate
Learn LINQ in C#: filter with Where, transform with Select, sort with OrderBy, group with GroupBy and fold with Aggregate — plus Sum, Count, Any and First.
- C# Exceptions: try, catch, finally and Custom Exceptions
Handle errors in C# with try, catch and finally, throw the right exception types, write custom exceptions and know when TryParse is the better choice.
- C# Nullable Types and Null Safety
Write null-safe C#: nullable value types like int?, nullable reference types like string?, and the ?., ??, ??= and is null operators.
Keep learning
Need a quick reminder? The C# cheat sheet has every topic of Learn C# on one page.
Lesson last updated on .