[C-Sharp Programming MCQS ]

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

[ C-Sharp Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
231. C# में ImmutableList की मुख्य विशेषता क्या है?
[A] Elements बदले जा सकते हैं
[B] Object बनने के बाद Collection नहीं बदलती
[C] यह Thread नहीं बनाती
[D] यह Database Collection है
231. What is the main characteristic of ImmutableList in C#?
[A] Elements can be modified
[B] The collection cannot be modified after creation
[C] It does not create threads
[D] It is a database collection
सही उत्तर: Object बनने के बाद Collection नहीं बदलती
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: The collection cannot be modified after creation
Explanation: Important question.
232. BlockingCollection का मुख्य उद्देश्य क्या है?
[A] Database Query करना
[B] Producer-Consumer Scenario को Support करना
[C] Reflection करना
[D] Serialization करना
232. What is the main purpose of BlockingCollection?
[A] Execute database queries
[B] Support Producer-Consumer scenarios
[C] Perform reflection
[D] Perform serialization
सही उत्तर: Producer-Consumer Scenario को Support करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Support Producer-Consumer scenarios
Explanation: Important question.
233. ReaderWriterLockSlim का मुख्य लाभ क्या है?
[A] केवल एक Writer और कई Readers को अनुमति देना
[B] केवल Reader Allow करना
[C] केवल Writer Allow करना
[D] Thread Create करना
233. What is the main advantage of ReaderWriterLockSlim?
[A] Allows one writer and multiple readers
[B] Allows only readers
[C] Allows only writers
[D] Creates threads
सही उत्तर: केवल एक Writer और कई Readers को अनुमति देना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Allows one writer and multiple readers
Explanation: Important question.
234. SpinLock का उपयोग सामान्यतः कब किया जाता है?
[A] Long Waiting Operations के लिए
[B] Short Duration Locking के लिए
[C] Database Connection के लिए
[D] File Upload के लिए
234. When is SpinLock generally used?
[A] For long waiting operations
[B] For short-duration locking
[C] For database connections
[D] For file uploads
सही उत्तर: Short Duration Locking के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: For short-duration locking
Explanation: Important question.
235. ManualResetEvent का मुख्य कार्य क्या है?
[A] एक Thread को Resume करना
[B] Multiple Threads को Signal देना
[C] Memory Allocate करना
[D] File Delete करना
235. What is the primary purpose of ManualResetEvent?
[A] Resume one thread
[B] Signal multiple threads
[C] Allocate memory
[D] Delete files
सही उत्तर: Multiple Threads को Signal देना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Signal multiple threads
Explanation: Important question.
236. AutoResetEvent और ManualResetEvent में मुख्य अंतर क्या है?
[A] दोनों समान हैं
[B] AutoResetEvent Signal के बाद स्वयं Reset हो जाता है
[C] ManualResetEvent स्वयं Reset हो जाता है
[D] कोई अंतर नहीं
236. What is the main difference between AutoResetEvent and ManualResetEvent?
[A] Both are identical
[B] AutoResetEvent resets automatically after signaling
[C] ManualResetEvent resets automatically
[D] There is no difference
सही उत्तर: AutoResetEvent Signal के बाद स्वयं Reset हो जाता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: AutoResetEvent resets automatically after signaling
Explanation: Important question.
237. TaskCompletionSource का मुख्य उद्देश्य क्या है?
[A] Task को Manually Complete करना
[B] Database Create करना
[C] File Open करना
[D] Memory Increase करना
237. What is the primary purpose of TaskCompletionSource?
[A] Complete a Task manually
[B] Create a database
[C] Open a file
[D] Increase memory
सही उत्तर: Task को Manually Complete करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Complete a Task manually
Explanation: Important question.
238. System.Threading.Channels का मुख्य उपयोग किसलिए किया जाता है?
[A] Database Access
[B] High Performance Producer-Consumer Communication
[C] Reflection
[D] XML Parsing
238. Why are System.Threading.Channels used?
[A] Database access
[B] High-performance producer-consumer communication
[C] Reflection
[D] XML parsing
सही उत्तर: High Performance Producer-Consumer Communication
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: High-performance producer-consumer communication
Explanation: Important question.
239. AsyncLock का मुख्य उद्देश्य क्या है?
[A] Async Code में Mutual Exclusion प्रदान करना
[B] Thread Abort करना
[C] Database Lock करना
[D] File Lock करना
239. What is the primary purpose of AsyncLock?
[A] Provide mutual exclusion in asynchronous code
[B] Abort threads
[C] Lock databases
[D] Lock files
सही उत्तर: Async Code में Mutual Exclusion प्रदान करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Provide mutual exclusion in asynchronous code
Explanation: Important question.
240. Producer-Consumer Pattern का मुख्य उद्देश्य क्या है?
[A] केवल Producer बनाना
[B] Data Produce और Consume करने वाले Threads को Efficiently Coordinate करना
[C] Database Delete करना
[D] Reflection करना
240. What is the primary purpose of the Producer-Consumer Pattern?
[A] Create only producers
[B] Efficiently coordinate producer and consumer threads
[C] Delete databases
[D] Perform reflection
सही उत्तर: Data Produce और Consume करने वाले Threads को Efficiently Coordinate करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Efficiently coordinate producer and consumer threads
Explanation: Important question.