Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

Simulados

Definir como pagina inicial

Adicionar esta pagina aos favoritos

Assinar endereco de e-mail

LINQ perguntas e respostas de entrevista

Pergunta 1. What is LINQ?

Language-Integrated Query (LINQ) is a set of features in C# and VB.NET that allows you to write queries directly into your code.

Example:

var query = from x in myList where x > 5 select x;

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 2. Explain the difference between IEnumerable and IQueryable in LINQ.

IEnumerable is used for querying data from in-memory collections, while IQueryable is used for querying data from out-of-memory data sources like a database.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 3. What is deferred execution in LINQ?

Deferred execution means that the execution of the query is delayed until the result is actually enumerated or a terminal operation is called.

Example:

var query = myList.Where(x => x > 5); // Execution is deferred until the result is enumerated.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 4. Explain the concept of anonymous types in LINQ.

Anonymous types allow you to create objects without defining a formal class structure. They are often used in LINQ queries to return a subset of properties.

Example:

var result = from p in products select new { p.Name, p.Price };

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 5. What is the purpose of the 'let' keyword in LINQ?

The 'let' keyword allows you to create a new variable within a query and use it within the rest of the query.

Example:

var query = from x in myList let y = x * 2 select y;

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.