Die meistgefragten Interviewfragen und Antworten sowie Online-Tests
Lernplattform fur Interviewvorbereitung, Online-Tests, Tutorials und Live-Ubungen

Baue deine Fahigkeiten mit fokussierten Lernpfaden, Probetests und interviewreifem Inhalt aus.

WithoutBook vereint themenbezogene Interviewfragen, Online-Ubungstests, Tutorials und Vergleichsleitfaden in einem responsiven Lernbereich.

Interview vorbereiten

Probeprufungen

Als Startseite festlegen

Diese Seite als Lesezeichen speichern

E-Mail-Adresse abonnieren

LINQ Interviewfragen und Antworten

Frage 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;

Ist das hilfreich? Kommentar hinzufugen Kommentare ansehen
 

Frage 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.

Ist das hilfreich? Kommentar hinzufugen Kommentare ansehen
 

Frage 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.

Ist das hilfreich? Kommentar hinzufugen Kommentare ansehen
 

Frage 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 };

Ist das hilfreich? Kommentar hinzufugen Kommentare ansehen
 

Frage 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;

Ist das hilfreich? Kommentar hinzufugen Kommentare ansehen
 

Am hilfreichsten laut Nutzern:

Copyright © 2026, WithoutBook.