Test Your Knowledge

C# Fundamentals Quiz

Answer all questions to test your understanding

1 When was C# first released?
2 Who designed the C# programming language?
3 Which of the following is NOT a valid use case for C#?
4 What type of programming language is C#?
5 What is the entry point of a C# program?
6 Which IDE is recommended for C# development?
7 Which command checks if .NET SDK is installed?
8 What is the free edition of Visual Studio called?
9 Which tool is used for version control in C# projects?
10 Which command creates a new console application?
11 Which data type is used for whole numbers in C#?
12 What is the range of the int data type in C#?
13 Which data type is best for precise decimal calculations like money?
14 What does the 'var' keyword do in C#?
15 What is a nullable type in C#?
16 What does the % operator do in C#?
17 What is the result of 10 / 3 in C# (integer division)?
18 Which operator is used for logical AND in C#?
19 What is the difference between ++x and x++?
20 Which operator is used for string concatenation?
21 What does the if statement do in C#?
22 Which statement is best for multiple condition checks?
23 What does the break keyword do in a switch statement?
24 What is the ternary operator syntax in C#?
25 What does the default case do in a switch statement?
26 Which loop is best when you know how many times to iterate?
27 Which loop always executes at least once?
28 What does the continue statement do in a loop?
29 Which loop is specifically designed for collections?
30 What does the break statement do in a loop?
31 What is the index of the first element in an array?
32 Which collection type stores key-value pairs?
33 What is the difference between Array and List<T>?
34 Which collection ensures all items are unique?
35 What is a multidimensional array?
36 Are strings mutable or immutable in C#?
37 Which class should you use for heavy string manipulation?
38 What is string interpolation?
39 Which method splits a string into an array of substrings?
40 What does the Trim() method do to a string?
41 What is exception handling in C#?
42 What is the correct order of catch blocks?
43 What is the purpose of the finally block?
44 Which keyword is used to throw a custom exception?
45 What does the using statement do?
46 What is a method in C#?
47 What is method overloading?
48 What does the 'params' keyword do?
49 What is the difference between ref and out parameters?
50 What is a static method?
51 How do you declare a nullable int in C#?
52 What does the ?? operator do?
53 What does the 'is' keyword do in pattern matching?
54 What is pattern matching in C#?
55 What does the ??= operator do?
56 What does LINQ stand for?
57 Which LINQ method filters a collection?
58 Which LINQ method transforms a collection?
59 Which LINQ method calculates the sum of a numeric property?
60 Which LINQ method checks if any element meets a condition?
61 What is a delegate in C#?
62 What is the difference between Func and Action in C#?
63 What is an event in C#?
64 What does the async keyword do?
65 What does the await keyword do?