Programming & Software Development · C# & .NET

C# Fundamentals

0:00 Question 1 of 15
0%
Your answers are kept only in this browser while you revisit this Quiz Zone. Refreshing this page or leaving through Home, Category, or Subcategory starts over.
Question 1
Senior: What is the purpose of nullable reference annotations?
Think compiler analysis.
Question 2
Senior: Why are readonly fields useful?
Think reassignment after construction.
Question 3
Architect: Why are namespaces not security or deployment boundaries?
They organize names.
Question 4
Fresher: Which loop commonly has initializer, condition, and iterator sections?
Classic counter-controlled loop.
Question 5
Senior: What does params allow?
Variable argument count.
Question 6
Fresher: Which declaration correctly stores a single character?
Single characters use single quotes.
Question 7
Fresher: What does continue do in a loop?
The loop continues.
Question 8
Senior: What is the purpose of finally?
Cleanup when leaving a try region.
Question 9
Senior: What is the intent of an in parameter?
Readonly by-reference input.
Question 10
Fresher: What does % return for integer operands?
Think about division remainder.
Question 11
Senior: What does ref allow a method to do?
The parameter aliases the caller's variable.
Question 12
Senior: Why is catching a specific exception type useful?
Different failures need different handling.
Question 13
Architect: Why is choosing class versus struct a semantic API decision, not just a memory optimization?
Think value versus reference semantics.
Question 14
Fresher: What do top-level statements allow in modern C#?
Think about small console apps.
Question 15
Senior: Why can condition1 && condition2 skip condition2?
The result may already be known.

Report a Question