Interview Questions

Get ready for your next interview with our comprehensive question library

C# Interview Questions

Filter by Difficulty

41.

Explain generic constraints in C#.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
42.

What is the difference between IEnumerable and IEnumerator?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
43.

Explain the difference between `IEnumerable<T>` and `IQueryable<T>`.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
44.

What is the difference between `throw` and `throw ex`?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
45.

What are custom exceptions and when should you create them?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
46.

Explain the using statement and IDisposable interface.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
47.

What is the difference between System.Exception and System.ApplicationException?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
48.

What is deferred execution in LINQ?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
49.

Explain the difference between `First()`, `FirstOrDefault()`, `Single()`, and `SingleOrDefault()`.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
50.

Explain `GroupBy` in LINQ with an example.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
51.

What is the difference between `Select` and `SelectMany`?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
52.

Explain `Join` operations in LINQ.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
53.

What are delegates in C# and how do they work?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
54.

Explain the difference between `Func`, `Action`, and `Predicate` delegates.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
55.

What are events and how are they different from delegates?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
56.

Explain event handling patterns in C#.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
57.

Explain `async` and `await` keywords.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
58.

Explain `ConfigureAwait(false)` and when to use it.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
59.

What is the difference between `Task.Run()` and direct async method call?

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
60.

Explain parallel programming with `Task.WhenAll` and `Task.WhenAny`.

intermediate

Upgrade to Premium to see the answer

Upgrade to Premium
Showing 41 to 60 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