Module 9 · 9. Practice and Assessment · Lesson 25 of 25
Final Quiz: 15 Questions on Learn C# and Production-Ready .NET 10
How this quiz works
- 15 multiple-choice questions, one correct answer each, drawn from the whole course: tooling, types and parsing, methods and delegates, object design, collections and LINQ, errors and resources, async and cancellation, and testing.
- Timed mode: 20 minutes. Answer every question before you check a single result.
- Online version: Final Quiz: Learn C# and Production-Ready .NET 10: 15 questions, 20 minutes, scored automatically (free).
- Scoring: 1 point for each right answer, no negative marking. Pass: 9 of 15 (60%).
- Code questions were compiled and run on .NET 10 with warnings treated as errors. Every answer explains its reasoning and links to the lesson that teaches it.
- The quiz is free. It is a check of what you have learned, not an interview simulation.
Before you start: five warm-up checks
Answer these on paper first. They are different from the quiz questions.
W1. What is the difference between the .NET SDK and the .NET runtime?
W2. A switch over an enum handles every named value. Has the input been validated?
W3. A method needs an int count from user text. Which parser fits, and what must you check before you use the value?
W4. In a catch block, what is the difference between throw; and throw ex;?
W5. A test passes. What else must be true before it protects the behaviour you care about?
Warm-up answers
- W1. The SDK supplies the development tools (build, run, test). The runtime executes the compiled application. (Lesson 1)
- W2. No. A complete switch is not an input validator: a cast can produce an unnamed value, so check the allowed values at the boundary. (Lesson 6)
- W3.
int.TryParse. Check its Boolean result before using theoutvalue, then apply the application's own range rules. (Lesson 5) - W4.
throw;keeps the exception's original stack information.throw ex;restarts the reported stack at the rethrow point. (Lesson 16) - W5. It must be able to fail. Its expectation has to be chosen independently, and it must check the result that matters. Executed lines alone prove nothing. (Lesson 22)
What the quiz covers
| Area | Lessons |
|---|---|
| Build and run, values and references | 1, 4 |
| Parsing, enums and casts | 5, 6 |
| Delegates, classes and SOLID | 9, 10, 12 |
| Collections and LINQ | 13, 15 |
| Failures and resource ownership | 16, 17 |
| Async, cancellation and testing | 19, 20, 22 |
Score bands
- 13-15: ready for interview-style practice. Try the mocks below.
- 9-12: pass. Reread the lessons linked from the questions you missed, then retake the quiz.
- Below 9: work through the practice tests attached to Lessons 1 to 12, then retake the quiz in a few days.
Related on TechInterviewNotes
- Free mock: Mock Interview: C# Core Language (Mid-Level), a 25-question, 35-minute interview-style test.
- Mock: Mock Interview: C# and .NET Interview Questions and Answers (Full Access).
- Mock: Mock Interview: Async, Concurrency and Cancellation in C# (Full Access).
Analogy
A pre-flight checklist
The quiz is a pre-flight check after training: the same instruments you learned, run against a clock, so that you can see which checks you still skip before you take a real system to production.
Quick reference
Where each answer lives
- Build, run and --no-build: Lesson 1.
- Struct and class copies: Lesson 4.
- TryParse, NumberStyles and culture: Lesson 5.
- Enums and unnamed values: Lesson 6.
- Captured variables in lambdas: Lesson 9.
- Live read-only views and snapshots: Lesson 10.
- Liskov substitution: Lesson 12.
- List growth and amortized cost: Lesson 13.
- Deferred LINQ and failures: Lesson 15.
- Failure boundaries: Lesson 16.
- Stream ownership: Lesson 17.
- How async methods start: Lesson 19.
- WaitAsync and cancellation: Lesson 20.
- Independent test expectations: Lesson 22.