Preparing for a .NET internship or fresher interview? This free .NET interview questions test gives you 15 random questions on C# and .NET fundamentals: language basics, object-oriented programming, LINQ, exceptions, async, the .NET platform, and ASP.NET Core, and explains every answer. You get a new set of questions every time you take it.

What this .NET interview test covers

Every attempt gives you 15 random questions, balanced across 7 topics, with the questions and answer options shuffled, so no two tests are the same.

TopicWhat it checksQuestions per test
Language basicsValue and reference types, strings, operators, const vs readonly3
Object-oriented programmingClasses, interfaces, inheritance, polymorphism, access modifiers3
Collections & LINQList, Dictionary, HashSet, Where, Select, deferred execution2
Exceptions & memorytry/catch/finally, using, garbage collection, boxing2
Async programmingasync, await, Task, avoiding blocking calls1
.NET platformCLR, IL and JIT, NuGet, .NET vs .NET Framework2
ASP.NET Core & webMiddleware, dependency injection, Web API, EF Core2

How to read your score

ScoreWhat it means
12–15 (80%+)Interview-ready. Your fundamentals are strong. Practise explaining these answers out loud, then start applying.
8–11 (50–79%)Almost there. A good base with a few gaps. Review your weakest topics and retake the test with new questions.
0–7 (below 50%)Build the basics. Focus on fundamentals first, using the explanations in your results, and try again in a week.

Sample .NET interview questions for freshers (with answers)

Here are five questions of the kind the test asks, with answers and explanations.

1. What does this code print?

int? x = null;
Console.WriteLine(x ?? 5);
  • A. It does not compile
  • B. null
  • C. 5
  • D. 0

Answer: C. The null-coalescing operator ?? returns the right-hand value when the left-hand value is null.

2. Which statement is true in C#?

  • A. A class can implement only one interface
  • B. A class can inherit from multiple classes
  • C. An interface can contain only fields
  • D. A class can implement multiple interfaces but inherit from only one class

Answer: D. C# supports single class inheritance and multiple interface implementation.

3. What does First() do when the sequence is empty?

  • A. Throws an InvalidOperationException
  • B. Returns the default value
  • C. Returns an empty sequence
  • D. Returns null

Answer: A. First() throws on an empty sequence. FirstOrDefault() returns the default value instead.

4. What does await do in an async method?

  • A. Blocks the thread until the task finishes
  • B. Waits for the task to finish without blocking the thread
  • C. Starts a new process
  • D. Converts the method to synchronous code

Answer: B. await pauses the method until the task completes and frees the thread to do other work meanwhile.

5. In ASP.NET Core dependency injection, a service registered as Scoped is created…

  • A. Once for the whole application
  • B. Only at application shutdown
  • C. Every time it is requested
  • D. Once per HTTP request

Answer: D. Scoped is once per request, Singleton is once per application, and Transient is a new instance every time.

Ready to test yourself?

Take the free .NET interview questions test now: 15 random questions, about 10 minutes, with an explanation for every answer.

How to prepare for a .NET internship interview

More free interview questions tests

See all tests and which ones fit your target role on the free internship tests page.

Frequently asked questions

Is this .NET interview test free?

Yes. The test is completely free, needs no login, and does not ask for any personal details. Your best score is saved only in your own browser.

How many questions are in the .NET test?

Each attempt has 15 random multiple-choice questions, balanced across seven topics. The questions and answer options are shuffled, so every retake gives you a new test.

What level is this .NET test?

It is designed for freshers and internship candidates. It checks the .NET fundamentals interviewers commonly ask about, not advanced or certification-level topics.

Which version of .NET does the test cover?

The questions focus on concepts that apply to modern .NET, such as .NET 8, and most also apply to older versions. Where the platforms differ, the explanation says so.

Does a high score guarantee an internship?

No. A high score shows strong fundamentals, but interviews also check your projects, problem solving, and communication. Use your result to decide what to study next.

Your next step

Scored well? Learn what happens in each internship interview round, from the online test to the HR interview.

Read the interview guide
Dhaivat Ajwaliya

About the author

Dhaivat Ajwaliya

Dhaivat has 16+ years of experience in the IT industry, working on AI and cloud technologies, project delivery, and engineering leadership. He has interviewed and mentored many interns, wrote The Lost Intern, and runs the non-commercial Career Impact Initiative, mentoring students for free.