[ DOT NET Core MCQS ]

झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।

[ DOT NET Core MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
511. FirstOrDefault() Method का लाभ क्या है?
[A] Record न मिलने पर Default Value Return करती है
[B] Exception Throw करती है
[C] Delete करती है
[D] Update करती है
511. What is the benefit of FirstOrDefault()?
[A] Returns Default Value if No Record Found
[B] Throws Exception
[C] Deletes Data
[D] Updates Data
सही उत्तर: Record न मिलने पर Default Value Return करती है
व्याख्या: Exception से बचने के लिए उपयोगी है।
Correct Answer: Returns Default Value if No Record Found
Explanation: Useful for avoiding exceptions.
512. Single() Method क्या सुनिश्चित करती है?
[A] केवल एक Record होना चाहिए
[B] कम से कम एक Record
[C] कोई Record नहीं
[D] कई Records
512. What does Single() ensure?
[A] Exactly One Record Exists
[B] At Least One Record
[C] No Record
[D] Multiple Records
सही उत्तर: केवल एक Record होना चाहिए
व्याख्या: एक से अधिक Record होने पर Exception आती है।
Correct Answer: Exactly One Record Exists
Explanation: Throws exception if more than one record exists.
513. Distinct() Method का उपयोग किसलिए होता है?
[A] Duplicate Records Remove करने के लिए
[B] Sorting के लिए
[C] Grouping के लिए
[D] Joining के लिए
513. What is Distinct() used for?
[A] Remove Duplicate Records
[B] Sort Data
[C] Group Data
[D] Join Data
सही उत्तर: Duplicate Records Remove करने के लिए
व्याख्या: Unique Values Return करती है।
Correct Answer: Remove Duplicate Records
Explanation: Returns unique values.
514. Take() Method क्या करती है?
[A] Specified Number of Records Return करती है
[B] Records Delete करती है
[C] Records Sort करती है
[D] Records Update करती है
514. What does Take() do?
[A] Returns Specified Number of Records
[B] Deletes Records
[C] Sorts Records
[D] Updates Records
सही उत्तर: Specified Number of Records Return करती है
व्याख्या: Top N Records प्राप्त करने के लिए उपयोग होती है।
Correct Answer: Returns Specified Number of Records
Explanation: Used to retrieve top N records.
515. Skip() Method का उपयोग किसलिए किया जाता है?
[A] Specified Records Skip करने के लिए
[B] Records Delete करने के लिए
[C] Records Sort करने के लिए
[D] Records Group करने के लिए
515. What is Skip() used for?
[A] Skip Specified Records
[B] Delete Records
[C] Sort Records
[D] Group Records
सही उत्तर: Specified Records Skip करने के लिए
व्याख्या: Skip() प्रारंभ के N Records को छोड़कर बाकी Records Return करती है।
Correct Answer: Skip Specified Records
Explanation: Skip() ignores the first N records and returns the remaining records.
516. TakeWhile() Method क्या करती है?
[A] Condition True रहने तक Records Return करती है
[B] Records Delete करती है
[C] Records Sort करती है
[D] Records Join करती है
516. What does TakeWhile() do?
[A] Returns Records While Condition is True
[B] Deletes Records
[C] Sorts Records
[D] Joins Records
सही उत्तर: Condition True रहने तक Records Return करती है
व्याख्या: Condition False होते ही Processing रुक जाती है।
Correct Answer: Returns Records While Condition is True
Explanation: Stops processing when condition becomes false.
517. SkipWhile() Method क्या करती है?
[A] Condition True रहने तक Records Skip करती है
[B] Records Sort करती है
[C] Records Delete करती है
[D] Records Reverse करती है
517. What does SkipWhile() do?
[A] Skips Records While Condition is True
[B] Sorts Records
[C] Deletes Records
[D] Reverses Records
सही उत्तर: Condition True रहने तक Records Skip करती है
व्याख्या: Condition False होने के बाद Records Return करती है।
Correct Answer: Skips Records While Condition is True
Explanation: Returns records after condition becomes false.
518. ElementAt() Method का उपयोग किसलिए होता है?
[A] Specific Index का Element प्राप्त करने के लिए
[B] Element Delete करने के लिए
[C] Element Update करने के लिए
[D] Element Sort करने के लिए
518. What is ElementAt() used for?
[A] Get Element at Specific Index
[B] Delete Element
[C] Update Element
[D] Sort Element
सही उत्तर: Specific Index का Element प्राप्त करने के लिए
व्याख्या: Specified Index का Element Return करती है।
Correct Answer: Get Element at Specific Index
Explanation: Returns element at the specified index.
519. ElementAtOrDefault() Method का लाभ क्या है?
[A] Invalid Index पर Default Value Return करती है
[B] Exception Throw करती है
[C] Element Delete करती है
[D] Sorting करती है
519. What is the benefit of ElementAtOrDefault()?
[A] Returns Default Value for Invalid Index
[B] Throws Exception
[C] Deletes Element
[D] Sorts Data
सही उत्तर: Invalid Index पर Default Value Return करती है
व्याख्या: Exception आने से बचाती है।
Correct Answer: Returns Default Value for Invalid Index
Explanation: Prevents exceptions for invalid indexes.
520. Last() Method क्या Return करती है?
[A] Last Record
[B] First Record
[C] Middle Record
[D] Count
520. What does Last() return?
[A] Last Record
[B] First Record
[C] Middle Record
[D] Count
सही उत्तर: Last Record
व्याख्या: Collection का अंतिम Element Return करती है।
Correct Answer: Last Record
Explanation: Returns the last element of a collection.