Top 74 C# Interview Questions

C# is an object-oriented programming language developed by Microsoft. C# code gets compiled into MSIL that further executes on CLR.

#21.

What is Expression in LINQ?

#22.

Difference between object, dynamic & var in C#?

#23.

Difference between continue and break statements?

#24.

Explain how Destructor/Finalize works?

#25.

What is GC.SupressFinalize?

#26.

Do we need to call GC.SupressFinalize if we don't have any destructor?

#27.

Explain delegate?

#28.

Explain multicast delegate?

#29.

How does Event work in C#?

#30.

Implement pub/sub in C#?

#31.

What is Thread Safety?

#32.

What is Race condition?

#33.

What are few Thread Synchronization techniques in C#?

#34.

Explain the differences between Monitor (lock), Mutex, and Semaphore?

#35.

What is Concurrency?

#36.

Explain async and await in C#?

#37.

Thread vs Task?

#38.

Benefits of using Task over thread?

#39.

Benefits of TPL?

#40.

What is deadlock? Explain with example.