Interview Questions

Get ready for your next interview with our comprehensive question library

C# Interview Questions

Filter by Difficulty

21.

What is the difference between `Task` and `Task<T>`?

beginner

Upgrade to Premium to see the answer

Upgrade to Premium
22.

What is the difference between stack and heap memory?

beginner

Upgrade to Premium to see the answer

Upgrade to Premium
23.

What are extension methods and how do you create them?

beginner

Upgrade to Premium to see the answer

Upgrade to Premium
24.

Explain raw string literals in C# 11.

beginner

Upgrade to Premium to see the answer

Upgrade to Premium
25.

Explain global using directives and file-scoped namespaces.

beginner

Upgrade to Premium to see the answer

Upgrade to Premium
26.

Explain the differences between .NET Framework, .NET Core, and .NET 5+.

beginner

Upgrade to Premium to see the answer

Upgrade to Premium
27.

What is the difference between `ref`, `out`, and `in` parameters?

beginner

Upgrade to Premium to see the answer

Upgrade to Premium
28.

Explain anonymous types and their limitations.

beginner

Upgrade to Premium to see the answer

Upgrade to Premium
29.

What is the `params` keyword and how is it used?

beginner

Upgrade to Premium to see the answer

Upgrade to Premium
30.

Explain the `using` declaration vs `using` statement.

beginner

Upgrade to Premium to see the answer

Upgrade to Premium
31.

Explain tuple types and deconstruction.

beginner

Upgrade to Premium to see the answer

Upgrade to Premium
32.

What are switch expressions vs switch statements?

beginner

Upgrade to Premium to see the answer

Upgrade to Premium
33.

Explain the concept of boxing and unboxing in C#.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
34.

Explain the difference between `==` operator and `Equals()` method.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
35.

What is the difference between `abstract` class and `interface`?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
36.

What is the difference between `virtual`, `override`, and `new` keywords?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
37.

What is the difference between composition and inheritance?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
38.

Explain the concept of sealed classes and methods.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
39.

What is string interning in C#?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
40.

What are generics and what are their benefits?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
Showing 21 to 40 of 99 results

Premium Plan

$10.00 /monthly
  • Access all premium content - interview questions, and other learning resources

  • We regularly update our features and content, to ensure you get the most relevant and updated premium content.

  • 1000 monthly credits

  • Cancel anytime