


Test How Well You Really Know C#
C# looks friendly until it surprises you. Why does a mutable struct in a readonly field never change? Why does a LINQ query see items added after it was written? Why does an async method print before the caller does, and why does the same lambda capture 3, 3, 3 in a for loop but 0, 1, 2 in foreach? These practice tests check how deeply you understand the language, one short program at a time.
What this practice test course offers:
Topics covered:
Who should take this course?
If you have never written C#, start with a C# fundamentals course and come back here to test yourself.
How to use the tests: take one test at a time, then read every explanation, including the ones for questions you answered correctly. Retake a test a few days later to check that the rules have stuck.
The programs assume a default .NET 11 console project (top-level statements, implicit usings and nullable reference types enabled) and the en-US culture.
This course is independent and is not affiliated with or endorsed by Microsoft. C# and .NET are trademarks of Microsoft Corporation.