اكثر اسئلة واجوبة المقابلات طلبا والاختبارات عبر الإنترنت
منصة تعليمية للتحضير للمقابلات والاختبارات عبر الإنترنت والدروس والتدريب المباشر

طوّر مهاراتك من خلال مسارات تعلم مركزة واختبارات تجريبية ومحتوى جاهز للمقابلات.

يجمع WithoutBook أسئلة المقابلات حسب الموضوع والاختبارات العملية عبر الإنترنت والدروس وأدلة المقارنة في مساحة تعلم متجاوبة واحدة.

التحضير للمقابلة

الاختبارات التجريبية

اجعلها الصفحة الرئيسية

احفظ هذه الصفحة في المفضلة

الاشتراك عبر البريد الإلكتروني
مقابلات تجريبية مباشرة من WithoutBook LINQ موضوعات مقابلات ذات صلة: 5

Interview Questions and Answers

تعرّف على اهم اسئلة واجوبة مقابلات LINQ للمبتدئين واصحاب الخبرة للاستعداد لمقابلات العمل.

إجمالي الاسئلة: 20 Interview Questions and Answers

افضل مقابلة تجريبية مباشرة يجب مشاهدتها قبل المقابلة

تعرّف على اهم اسئلة واجوبة مقابلات LINQ للمبتدئين واصحاب الخبرة للاستعداد لمقابلات العمل.

Interview Questions and Answers

ابحث عن سؤال لعرض الاجابة.

اسئلة واجوبة مستوى المبتدئين / حديثي التخرج

سؤال 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;

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 2

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.

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 3

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

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 4

What is the purpose of the 'orderby' clause in LINQ?

The 'orderby' clause is used to sort the elements of a sequence in ascending or descending order.

Example:

var query = from x in myList orderby x descending select x;

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 5

What is the purpose of the 'Select' method in LINQ?

The 'Select' method is used to transform each element of a sequence by applying a specified function, and it returns a new sequence of the transformed elements.

Example:

var result = myList.Select(x => x * 2);

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 6

What is the difference between 'FirstOrDefault' and 'First' methods in LINQ?

'FirstOrDefault' returns the first element of a sequence or a default value if the sequence is empty, while 'First' returns the first element and throws an exception if the sequence is empty.

Example:

var firstItem = myList.FirstOrDefault(); 
var firstItemWithValue = myList.First();

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 7

What is the purpose of the 'Any' method in LINQ?

'Any' is used to determine whether any elements of a sequence satisfy a given condition. It returns true if any element satisfies the condition, otherwise false.

Example:

bool hasElementsGreaterThanFive = myList.Any(x => x > 5);

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 8

Explain the usage of the 'Concat' method in LINQ.

'Concat' is used to concatenate two sequences, creating a new sequence that contains elements from both sequences.

Example:

var result = sequence1.Concat(sequence2);

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 9

What is the purpose of the 'Distinct' method in LINQ?

'Distinct' is used to eliminate duplicate elements from a sequence and return a new sequence with unique elements.

Example:

var result = myList.Distinct();

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات

اسئلة واجوبة المستوى المتوسط / من سنة إلى خمس سنوات خبرة

سؤال 10

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.
احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 11

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;

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 12

Explain the usage of 'group by' in LINQ.

'Group by' is used to group elements based on a specific key. It is often used in conjunction with aggregate functions like Count, Sum, etc.

Example:

var result = from p in products group p by p.Category into g select new { Category = g.Key, Count = g.Count() };

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 13

Explain the use of 'join' in LINQ.

'Join' is used to combine elements from two or more collections based on a related key.

Example:

var result = from p in products join c in categories on p.CategoryID equals c.CategoryID select new { Product = p.Name, Category = c.Name };

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 14

What is the purpose of the 'SingleOrDefault' method in LINQ?

'SingleOrDefault' returns the only element of a sequence or a default value if the sequence is empty. It throws an exception if there is more than one element.

Example:

var item = myList.SingleOrDefault(x => x.ID == 5);

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 15

Explain the concept of 'query syntax' and 'method syntax' in LINQ.

'Query syntax' is the SQL-like syntax used in LINQ queries, while 'method syntax' involves using extension methods and lambda expressions to achieve the same results.

Example:

Query Syntax: var result = from x in myList where x > 5 select x; 
Method Syntax: var result = myList.Where(x => x > 5);

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 16

Explain the concept of 'deferred loading' in LINQ to SQL.

'Deferred loading' in LINQ to SQL means that related objects are not loaded from the database until they are accessed for the first time.
احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 17

Explain the usage of the 'Skip' and 'Take' methods in LINQ.

'Skip' is used to skip a specified number of elements in a sequence, and 'Take' is used to return a specified number of elements from the start of a sequence.

Example:

var result = myList.Skip(2).Take(3);

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 18

Explain the concept of 'immediate execution' in LINQ.

'Immediate execution' means that the query is executed and the results are retrieved immediately when the query is defined.

Example:

var result = myList.ToList(); // Immediate execution

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 19

What is the purpose of the 'Zip' method in LINQ?

'Zip' is used to merge two sequences element-wise, creating a new sequence of pairs based on the elements at the same index.

Example:

var result = sequence1.Zip(sequence2, (x, y) => x + y);

احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات
سؤال 20

Explain the use of 'AsEnumerable' in LINQ.

'AsEnumerable' is used to cast a sequence to its enumerable form, which can be useful in scenarios where you want to force the query to be executed on the client side rather than on the server side.
احفظ للمراجعة

احفظ للمراجعة

احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.

افتح مكتبتي التعليمية
هل هذا مفيد؟
اضف تعليقا عرض التعليقات

الاكثر فائدة حسب تقييم المستخدمين:

حقوق النشر © 2026، WithoutBook.