Sign in to unlock

Get unlimited access to all questions and answers

checked

Get lifetime access

checked

Track progress

checked

Save time

đź‘‹

Hi! Please sign in to edit.

You will receive an email notification when your contribution is accepted.

The fastest way to prepare
for a tech interview

Check our curated list of full-stack, data structures & software architecture interview questions and answers for developers

* If it's yours original answer, you can add a link to your social media account or personal website.
C# interview questions

C# interview questions.

Only challenges
Topic progress: 0%
1.

What is an Object?

premium question
completed

Answer:

2.

What is the difference between "continue" and "break" statements in C#?

premium question
completed

Answer:

3.

What is C#?

premium question
completed

Answer:

4.

What are property Accessors?

premium question
completed

Answer:

5.

What are nullable types in C#?

premium question
completed

Answer:

6.

Why can't you specify the accessibility modifier for methods inside the interface?

premium question
completed

Answer:

7.

What are reference types in C#?

premium question
completed

Answer:

8.

What are generics in C#?

premium question
completed

Answer:

9.

What is an Abstract Class?

premium question
completed

Answer:

10.

What are Custom Exceptions?

premium question
completed

Answer:

11.

What is namespace in C#?

premium question
completed

Answer:

12.

What is Serialization?

premium question
completed

Answer:

13.

What are dynamic type variables in C#?

premium question
completed

Answer:

14.

Can "this" be used within a static method?

premium question
completed

Answer:

15.

In how many ways you can pass parameters to a method?

premium question
completed

Answer:

16.

What is the difference between a struct and a class in C#?

premium question
completed

Answer:

17.

What are the different types of classes in C#?

premium question
completed

Answer:

18.

Can you return multiple values from a function in C#?

premium question
completed

Answer:

19.

Define Property in C#?

premium question
completed

Answer:

20.

What is Boxing and Unboxing?

premium question
completed

Answer:

21.

What is the difference between string and StringBuilder in c#?

premium question
completed

Answer:

22.

How is Exception Handling implemented in C#?

premium question
completed

Answer:

23.

What is LINQ in C#?

premium question
completed

Answer:

24.

Can multiple catch blocks be executed?

premium question
completed

Answer:

25.

What is enum in C#?

premium question
completed

Answer:

26.

What are partial classes?

premium question
completed

Answer:

27.

Why to use “finally” block in C#?

premium question
completed

Answer:

28.

What you understand by Value types and Reference types in C#.Net?

premium question
completed

Answer:

29.

What is Managed or Unmanaged Code?

premium question
completed

Answer:

30.

Filter out the first 3 even numbers from the list using LINQ

premium question
completed

Answer:

31.

What is the difference between ref and out keywords?

premium question
completed

Answer:

32.

What is difference between Throw Exception and Throw Clause?

premium question
completed

Answer:

33.

A structure in C# can implement one or more interfaces. Is it true or false?

premium question
completed

Answer:

34.

What is the difference between Virtual method and Abstract method?

premium question
completed

Answer:

35.

What is the use of Null Coalescing Operator (??) in C#?

premium question
completed

Answer:

36.

What is Virtual Method in C#?

premium question
completed

Answer:

37.

What is the difference between Interface and Abstract Class?

premium question
completed

Answer:

38.

What is lambda expressions in C#?

premium question
completed

Answer:

39.

Explain Anonymous type in C#

premium question
completed

Answer:

40.

What is the difference between dynamic type variables and object type variables?

premium question
completed

Answer:

41.

What is the difference between Equality Operator (==) and Equals() Method in C#?

premium question
completed

Answer:

42.

What are the uses of “using” in C#

premium question
completed

Answer:

43.

How encapsulation is implemented in C#?

premium question
completed

Answer:

44.

What is the difference between overloading and overriding?

premium question
completed

Answer:

45.

How can you prevent a class from overriding in C#?

premium question
completed

Answer:

46.

Explain Code compilation in C#

premium question
completed

Answer:

47.

What is the output of the program below? Explain your answer.

premium question
completed

Answer:

48.

What is an anonymous function in C#?

premium question
completed

Answer:

49.

What is difference between constants and readonly?

premium question
completed

Answer:

50.

What is Reflection in C#.Net?

premium question
completed

Answer:

51.

What is a Destructor in C#?

premium question
completed

Answer:

52.

What is the difference between constant and readonly in C#?

premium question
completed

Answer:

53.

What is scope of a Internal member variable of a C# class?

premium question
completed

Answer:

54.

What is delegates in C# and uses of delegates?

premium question
completed

Answer:

55.

What is extension method in C# and how to use them?

premium question
completed

Answer:

56.

What is sealed class in C#?

premium question
completed

Answer:

57.

Can you allow a class to be inherited, but prevent a method from being overridden in C#?

premium question
completed

Answer:

58.

Refactor the code

premium question
completed

Answer:

59.

Given an array of ints, write a C# method to total all the values that are even numbers.

premium question
completed

Answer:

60.

What interface should your data structure implement to make the "Where" method work?

premium question
completed

Answer:

61.

What is an Object Pool in .Net?

premium question
completed

Answer:

62.

What is difference between late binding and early binding in C#?

premium question
completed

Answer:

63.

Is operator overloading supported in C#?

premium question
completed

Answer:

64.

Why to use lock statement in C#?

premium question
completed

Answer:

65.

What is the Constructor Chaining in C#?

premium question
completed

Answer:

66.

What is the difference between dispose and finalize methods in c#?

premium question
completed

Answer:

67.

Name difference between "is" and "as" operator in C#

premium question
completed

Answer:

68.

What is marshalling and why do we need it?

premium question
completed

Answer:

69.

Can you create a function in C# which can accept varying number of arguments?

premium question
completed

Answer:

70.

Describe the accessibility modifier "protected internal".

premium question
completed

Answer:

71.

What are the different ways a method can be overloaded?

premium question
completed

Answer:

72.

When to use ArrayList over array[] in c#?

premium question
completed

Answer:

73.

What are the uses of delegates in C#?

premium question
completed

Answer:

74.

What is the best practice to have best performance using Lazy objects?

premium question
completed

Answer:

75.

What is scope of a Protected Internal member variable of a C# class?

premium question
completed

Answer:

76.

What is Indexer in C#?

premium question
completed

Answer:

77.

Explain what is short-circuit evaluation in C#

premium question
completed

Answer:

78.

What are the differences between a multidimensional array and an array of arrays in C#?

premium question
completed

Answer:

79.

What are pointer types in C#?

premium question
completed

Answer:

80.

What is the "yield" keyword used for in C#?

premium question
completed

Answer:

81.

IEnumerable vs List - What to Use? How do they work?

premium question
completed

Answer:

82.

What's the difference between StackOverflowError and OutOfMemoryError?

premium question
completed

Answer:

83.

Can we have only “try” block without “catch” block in C#?

premium question
completed

Answer:

84.

What is the difference between System.ApplicationException class and System.SystemException class?

premium question
completed

Answer:

85.

Explain the difference between Select and Where

premium question
completed

Answer:

86.

What is the difference between Func and delegate?

premium question
completed

Answer:

87.

In try block if we add return statement whether finally block is executed in C#?

premium question
completed

Answer:

88.

Can Multiple Inheritance implemented in C# ?

premium question
completed

Answer:

89.

What is the output of the program below?

premium question
completed

Answer:

90.

What is the use of conditional preprocessor directive in C#?

premium question
completed

Answer:

91.

What's the difference between the System.Array.CopyTo() and System.Array.Clone()?

premium question
completed

Answer:

92.

What is jagged array in C#.Net and when to prefer jagged arrays over multi-dimensional arrays?

premium question
completed

Answer:

93.

What is the “volatile” keyword used for?

premium question
completed

Answer:

94.

What is the method MemberwiseClone() doing?

premium question
completed

Answer:

95.

Can you add extension methods to an existing static class?

premium question
completed

Answer:

96.

Explain the difference between IQueryable, ICollection, IList & IDictionary interfaces?

premium question
completed

Answer:

97.

What is the use of static constructors?

premium question
completed

Answer:

98.

Implement the "Where" method in C#

premium question
completed

Answer:

99.

What is the difference between lambdas and delegates?

premium question
completed

Answer:

100.

What is a preprocessor directives in C#?

premium question
completed

Answer:

101.

Could you explain the difference between Func vs. Action vs. Predicate?

premium question
completed

Answer:

102.

What is multicast delegate in C#?

premium question
completed

Answer:

103.

Can you create sealed abstract class in C#?

premium question
completed

Answer:

104.

What are the differences between IEnumerable and IQueryable?

premium question
completed

Answer:

105.

in C#, when should we use abstract classes instead of interfaces with extension methods?

premium question
completed

Answer:

106.

Could you explain the difference between destructor, dispose and finalize method?

premium question
completed

Answer:

107.

What are circular references?

premium question
completed

Answer:

108.

What is deep or shallow copy concept in C#?

premium question
completed

Answer:

109.

Explain what is weak reference in C#?

premium question
completed

Answer:

110.

What are the benefits of a Deferred Execution in LINQ?

premium question
completed

Answer:

111.

List some different ways for equality check in .Net

premium question
completed

Answer:

112.

You have defined a destructor in a class that you have developed by using the C# programming language, but the destructor never executed. Why did the destructor not execute?

premium question
completed

Answer:

113.

Why Doesn't C# Allow Static Methods to Implement an Interface?

premium question
completed

Answer:

114.

What is the output of the short program below? Explain your answer.

premium question
completed

Answer:

115.

What is the output of the program below? Explain your answer.

premium question
completed

Answer:

116.

Is the comparison of time and null in the if statement below valid or not? Why or why not?

premium question
completed

Answer:

117.

Calculate the circumference of the circle

premium question
completed

Answer:

Reverse Tech Interview: Questions to Stump an Interviewer

Few people want to get into an uncomfortable environment or an unprofitable company with no prospects. If you’re wondering how to get a real feel for a company during an interview, you’re welcome. I’ll give a list of questions that interviewers don’t usually expect...

How to become a programmer, move to the US, and get a dream job

Are you curious about what you need to do to earn more than $15.000 a month, drive a Tesla, live in sunny California, and work at Google, Apple, Facebook, or Amazon?

11 Reactive Systems interview questions and answers for software engineers . Reactive Systems

Reactive systems are an architectural style that allows multiple individual applications to blend into one unit, reacting to their environment, while staying aware of each other. Here is a list of coding interview questions on Reactive Systems to help you get ready...

34 Microservices interview questions and answers for software engineers

Microservice architecture – a variant of the service-oriented architecture structural style – arranges an application as a collection of loosely coupled services. In a microservices architecture, services are fine-grained and the protocols are lightweight. Here is a list of coding intervie...

. Microservices
7 Layering & Middleware interview questions for developers

Middleware in the context of distributed applications is software that provides services beyond those provided by the operating system to enable the various components of a distributed system to communicate and manage data. Middleware supports and simplifies complex distributed application...

. Layering & Middleware
55 Docker interview questions and answers for software engineers

Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Here is a list of coding interview questions on Docker to help you get ready for your next data structures interview in 2021.

. Docker
23 Databases interview questions and answers for software engineers

A database is an organized collection of data, generally stored and accessed electronically from a computer system. Where databases are more complex they are often developed using formal design and modeling techniques. Here is a list of coding interview questions on Databases to help you g...

. Databases
21 Concurrency interview questions and answers for software engineers

In computer science, concurrency is the ability of different parts or units of a program, algorithm, or problem to be executed out-of-order or in partial order, without affecting the final outcome. Here is a list of coding interview questions on Concurrency to help you get ready for your n...

. Concurrency
13 CAP Theorem interview questions and answers for software engineers

In theoretical computer science, the CAP theorem, also named Brewer's theorem after computer scientist Eric Brewer, states that it is impossible for a distributed data store to simultaneously provide more than two out of the following three guarantees: Consistency: Every read receives the ...

. CAP Theorem
18 Caching interview questions and answers for software engineers

Caching is a technique that stores a copy of a given resource and serves it back when requested. Here is a list of coding interview questions on Caching to help you get ready for your next data structures interview in 2021.

. Caching
Load more posts

Features

folder icon

Access all answers

Get the inside track on what to expect in your next tech interview. We offer you a collection of high quality technical interview questions to help you prepare for your next coding interview.

graph icon

Track progress

A smart interface helps you track your progress and focus on the topics you need. You can search through questions or sort them by difficulty or type.

clock icon

Save time

Save tens of hours searching for information on hundreds of low-quality sites designed to drive traffic and make money from advertising.

Land a six-figure job at one of the top companies.

amazon logo facebook logo google logo microsoft logo uber logo
Prepare for a technical interview

Get hired with our
tech interview questions & answers