InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 1033–1044 of 3610 questions

C# & .NET DevelopmentBeginner1 min read

What is List<T>?

List<T> is a resizable, strongly typed collection. It supports adding, removing, searching, and indexed access.

C# & .NET DevelopmentBeginner1 min read

What is a dictionary?

Dictionary<TKey,TValue> stores values by unique keys and normally provides fast average lookup.

C# & .NET DevelopmentBeginner1 min read

What is LINQ?

LINQ provides a consistent way to query collections and supported data sources using method syntax or query syntax.

C# & .NET DevelopmentBeginner1 min read

What is an interface?

An interface defines a contract that implementing types must satisfy. It enables polymorphism and loose coupling.

C# & .NET DevelopmentBeginner1 min read

What is inheritance?

Inheritance lets a derived class reuse and specialize a base class. C# supports single class inheritance and multiple interface implementation.

C# & .NET DevelopmentBeginner1 min read

What is polymorphism?

Polymorphism lets code call a common contract while the runtime dispatches to the implementation for the actual object.

C# & .NET DevelopmentBeginner1 min read

What is encapsulation?

Encapsulation keeps internal state and implementation details behind a public contract. It protects invariants by controlling how state changes.

C# & .NET DevelopmentBeginner1 min read

What is abstraction?

Abstraction exposes essential behavior while hiding implementation details. Interfaces and abstract classes are common tools for defining abstractions.

C# & .NET DevelopmentBeginner1 min read

What is an abstract class?

An abstract class cannot be instantiated directly. It can define shared implementation and abstract members that derived classes must implement.

C# & .NET DevelopmentBeginner1 min read

What is an exception?

An exception represents an error or unusual condition. try, catch, finally, and throw are used to handle or propagate exceptions.