C# Basics: Final Recap & Mega Quiz
You finished all 8 core topics. This 15-question test covers everything. Score 12/15 and you're job-ready for C# basics.
Passing: 12/15 | Time: No limit | Retake allowed
90-Second Recap: Everything You Learned
| Setup | .NET SDK compiles, VS Code edits, dotnet run executes |
| Variables | int whole, double decimal, decimal money, string text, bool true/false |
| Operators | + - * / % math. ==!= > < compare. && ||! logic |
| If-Else | if(age >= 18) decides. switch for many values. Ternary: a > b? x : y |
| Loops | for known count. foreach for lists. while unknown. break exit, continue skip |
| Arrays/Lists | Array fixed int[3]. List flexible List<int>. Use List 99%. Index starts 0 |
| Methods | static int Add(int a, int b) { return a+b; }. ref modifies, out must assign |
| Exceptions | try risky code. catch handles error. finally always runs. decimal for money |
No comments yet. Be the first to share your thoughts!