[C-Sharp Programming MCQS ]

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

[ C-Sharp Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
311. LINQ में Select clause का उपयोग क्या करता है?
[A] Data filter करता है
[B] Data transform करता है
[C] Data delete करता है
[D] Data update करता है
311. What does the Select clause do in LINQ?
[A] Filters data
[B] Transforms data
[C] Deletes data
[D] Updates data
सही उत्तर: Data transform करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Transforms data
Explanation: Important question.
312. LINQ में Where clause का उपयोग क्या करता है?
[A] Sorting
[B] Filtering
[C] Joining
[D] Grouping
312. What is the use of Where clause in LINQ?
[A] Sorting
[B] Filtering
[C] Joining
[D] Grouping
सही उत्तर: Filtering
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Filtering
Explanation: Important question.
313. FirstOrDefault() method क्या return करता है?
[A] Last element
[B] First element या default value
[C] Only null
[D] Exception
313. What does FirstOrDefault() return?
[A] Last element
[B] First element or default value
[C] Only null
[D] Exception
सही उत्तर: First element या default value
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: First element or default value
Explanation: Important question.
314. Single() method कब exception throw करता है?
[A] जब zero या multiple elements हों
[B] जब memory full हो
[C] जब thread block हो
[D] हमेशा
314. When does Single() method throw exception?
[A] When zero or multiple elements exist
[B] When memory is full
[C] When thread is blocked
[D] Always
सही उत्तर: जब zero या multiple elements हों
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: When zero or multiple elements exist
Explanation: Important question.
315. LINQ में Join का उपयोग क्या करता है?
[A] Sorting
[B] Two collections को combine करना
[C] Memory allocation
[D] Threading
315. What is the use of Join in LINQ?
[A] Sorting
[B] Combine two collections
[C] Memory allocation
[D] Threading
सही उत्तर: Two collections को combine करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Combine two collections
Explanation: Important question.
316. GroupBy का मुख्य उद्देश्य क्या है?
[A] Data delete करना
[B] Data को groups में organize करना
[C] Thread create करना
[D] Memory clear करना
316. What is the main purpose of GroupBy?
[A] Delete data
[B] Organize data into groups
[C] Create thread
[D] Clear memory
सही उत्तर: Data को groups में organize करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Organize data into groups
Explanation: Important question.
317. C# में Task और Thread में मुख्य अंतर क्या है?
[A] दोनों same हैं
[B] Task high-level abstraction है Thread का
[C] Thread database के लिए होता है
[D] Task केवल UI के लिए होता है
317. What is the main difference between Task and Thread in C#?
[A] Both are same
[B] Task is a high-level abstraction over Thread
[C] Thread is used for database
[D] Task is only for UI
सही उत्तर: Task high-level abstraction है Thread का
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Task is a high-level abstraction over Thread
Explanation: Important question.
318. async keyword का मुख्य उपयोग क्या है?
[A] Method को synchronous बनाना
[B] Method को asynchronous बनाना
[C] Memory delete करना
[D] Thread stop करना
318. What is the main use of async keyword?
[A] Make method synchronous
[B] Make method asynchronous
[C] Delete memory
[D] Stop thread
सही उत्तर: Method को asynchronous बनाना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Make method asynchronous
Explanation: Important question.
319. await keyword किसके साथ उपयोग होता है?
[A] sync method
[B] Task या Task
[C] class
[D] struct
319. With what is the await keyword used?
[A] sync method
[B] Task or Task
[C] class
[D] struct
सही उत्तर: Task या Task
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Task or Task
Explanation: Important question.
320. Task.Run() का उपयोग क्या करता है?
[A] UI update
[B] Background thread पर work execute करना
[C] Database delete
[D] File read only
320. What does Task.Run() do?
[A] Update UI
[B] Execute work on background thread
[C] Delete database
[D] Read file only
सही उत्तर: Background thread पर work execute करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Execute work on background thread
Explanation: Important question.