[ DOT NET Core MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ DOT NET Core MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
711. First() Method क्या Return करती है?
[A] First Matching Element
[B] Last Element
[C] All Elements
[D] Null
711. What does First() return?
[A] First Matching Element
[B] Last Element
[C] All Elements
[D] Null
सही उत्तर: First Matching Element
व्याख्या: पहला Matching Record Return करती है।
Correct Answer: First Matching Element
Explanation: Returns the first matching record.
712. Single() Method कब उपयोग की जाती है?
[A] Exactly One Record Expected
[B] Multiple Records Expected
[C] No Records Expected
[D] Sorting के लिए
712. When is Single() used?
[A] Exactly One Record Expected
[B] Multiple Records Expected
[C] No Records Expected
[D] Sorting
सही उत्तर: Exactly One Record Expected
व्याख्या: एक ही Record होना चाहिए अन्यथा Exception आता है।
Correct Answer: Exactly One Record Expected
Explanation: Throws exception if more than one record exists.
713. Any() Method का उपयोग किसलिए होता है?
[A] Check Record Exists
[B] Delete Record
[C] Sort Record
[D] Group Record
713. What is Any() used for?
[A] Check Record Exists
[B] Delete Record
[C] Sort Record
[D] Group Record
सही उत्तर: Check Record Exists
व्याख्या: कम से कम एक Record मौजूद है या नहीं जांचती है।
Correct Answer: Check Record Exists
Explanation: Checks if at least one record exists.
714. All() Method क्या Check करती है?
[A] All Records Match Condition
[B] Any Record Match Condition
[C] No Record Exists
[D] Duplicate Records
714. What does All() check?
[A] All Records Match Condition
[B] Any Record Match Condition
[C] No Record Exists
[D] Duplicate Records
सही उत्तर: All Records Match Condition
व्याख्या: सभी Records Condition पूरी करते हैं या नहीं।
Correct Answer: All Records Match Condition
Explanation: Checks whether all records satisfy a condition.
715. Count() Method का उपयोग किसलिए होता है?
[A] Total Records Count
[B] Delete Records
[C] Update Records
[D] Sort Records
715. What is Count() used for?
[A] Count Total Records
[B] Delete Records
[C] Update Records
[D] Sort Records
सही उत्तर: Total Records Count
व्याख्या: Collection में Records की संख्या Return करती है।
Correct Answer: Count Total Records
Explanation: Returns the number of records in a collection.
716. LongCount() Method कब उपयोग की जाती है?
[A] Very Large Collections
[B] Small Collections
[C] Sorting
[D] Grouping
716. When is LongCount() used?
[A] Very Large Collections
[B] Small Collections
[C] Sorting
[D] Grouping
सही उत्तर: Very Large Collections
व्याख्या: जब Count Int32 सीमा से अधिक हो सकता है।
Correct Answer: Very Large Collections
Explanation: Used when count may exceed Int32 range.
717. Contains() Method का उपयोग किसलिए होता है?
[A] Check Value Exists
[B] Delete Value
[C] Update Value
[D] Sort Value
717. What is Contains() used for?
[A] Check Value Exists
[B] Delete Value
[C] Update Value
[D] Sort Value
सही उत्तर: Check Value Exists
व्याख्या: Collection में Value मौजूद है या नहीं जांचती है।
Correct Answer: Check Value Exists
Explanation: Checks whether a value exists in a collection.
718. Distinct() Method क्या करती है?
[A] Duplicate Records Remove करती है
[B] Records Sort करती है
[C] Records Group करती है
[D] Records Delete करती है
718. What does Distinct() do?
[A] Removes Duplicate Records
[B] Sorts Records
[C] Groups Records
[D] Deletes Records
सही उत्तर: Duplicate Records Remove करती है
व्याख्या: Unique Values Return करती है।
Correct Answer: Removes Duplicate Records
Explanation: Returns unique values.
719. ToList() Method का उपयोग किसलिए होता है?
[A] Convert IEnumerable to List
[B] Convert List to Array
[C] Convert String to List
[D] Convert DataTable to SQL
719. What is ToList() used for?
[A] Convert IEnumerable to List
[B] Convert List to Array
[C] Convert String to List
[D] Convert DataTable to SQL
सही उत्तर: Convert IEnumerable to List
व्याख्या: LINQ Result को List Collection में Convert करती है।
Correct Answer: Convert IEnumerable to List
Explanation: Converts LINQ result into a List collection.
720. Pagination के लिए LINQ में कौन सा Combination सबसे अधिक उपयोग होता है?
[A] Skip() और Take()
[B] Where() और Select()
[C] Join() और GroupBy()
[D] Any() और All()
720. Which LINQ combination is commonly used for pagination?
[A] Skip() and Take()
[B] Where() and Select()
[C] Join() and GroupBy()
[D] Any() and All()
सही उत्तर: Skip() और Take()
व्याख्या: Page-wise Data Retrieval के लिए।
Correct Answer: Skip() and Take()
Explanation: Used for page-wise data retrieval.