InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

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

Showing 1069–1080 of 3610 questions

C# & .NET DevelopmentIntermediate1 min read

What is Entity Framework Core?

EF Core is an object-relational mapper that lets .NET code query and update relational databases using entity classes and LINQ. It translates supported que

C# & .NET DevelopmentIntermediate1 min read

What is the N+1 query problem?

N+1 occurs when one query loads a set of rows and then an additional query runs for each row to load related data. It increases latency and database load.

C# & .NET DevelopmentIntermediate1 min read

What are EF Core migrations?

Migrations record incremental schema changes based on model differences. They can be reviewed and applied in controlled deployment processes.

C# & .NET DevelopmentIntermediate1 min read

How do you prevent SQL injection?

SQL injection happens when untrusted input is concatenated into SQL syntax. Use parameterized queries or EF Core LINQ; avoid building SQL by string concate

C# & .NET DevelopmentIntermediate1 min read

What is LINQ deferred execution?

Many LINQ queries build an iterator or expression and run only when enumerated. Operators such as ToList, ToArray, Count, or foreach trigger execution.

C# & .NET DevelopmentIntermediate1 min read

Why should async void be avoided?

async void cannot be awaited by callers and its exceptions cannot be observed through a returned Task. It is generally reserved for event handlers.

C# & .NET DevelopmentIntermediate1 min read

What is CancellationToken?

CancellationToken communicates a cancellation request. APIs should pass it through to database, HTTP, and other operations when supported.