30 Interview questions that every C#/CSharp developer should know

Martynas Samuilovas
15 min readJan 3, 2023

I interview people for backend .NET developer positions. Surprisingly, even senior developers seem to not know the answers to these questions.

Photo by Christina @ wocintechchat.com on Unsplash

1. What is C# and .NET?

C# is a statically-typed, object-oriented programming language. .NET is a software framework that provides a runtime environment and a set of libraries for building and running applications on various platforms.

2. What are the main .NET features?

a) Runtime — responsible for executing .NET applications and provides services such as memory management, exception handling, and thread management.
b) A large class library: The .NET framework includes a vast collection of pre-built classes and types that provide a wide range of functionality, including file I/O, networking, data access, security, and more.
C) Garbage collection automatically reclaims memory occupied by unreachable unused objects.
D) Cross-platform support: The .NET framework can be used to build applications that run on a variety of platforms, including Windows, Linux, and macOS.

3. What are Access Modifiers?

Access modifiers are keywords that specify the accessibility of a class, method, or field. They…

--

--