[C-Sharp Programming MCQS ]

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

[ C-Sharp Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
221. C# में ConcurrentDictionary का मुख्य लाभ क्या है?
[A] केवल Single Thread में कार्य करता है
[B] Thread-Safe Key-Value Collection प्रदान करता है
[C] केवल Read-Only Collection है
[D] केवल Array Store कर सकता है
221. What is the main advantage of ConcurrentDictionary in C#?
[A] Works only in a single thread
[B] Provides a thread-safe key-value collection
[C] It is a read-only collection
[D] Can store only arrays
सही उत्तर: Thread-Safe Key-Value Collection प्रदान करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Provides a thread-safe key-value collection
Explanation: Important question.
222. ConcurrentQueue किस प्रकार का Collection है?
[A] LIFO
[B] FIFO
[C] Sorted Collection
[D] Stack Collection
222. What type of collection is ConcurrentQueue?
[A] LIFO
[B] FIFO
[C] Sorted Collection
[D] Stack Collection
सही उत्तर: FIFO
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: FIFO
Explanation: Important question.
223. ConcurrentStack किस सिद्धांत पर कार्य करता है?
[A] FIFO
[B] LIFO
[C] Random
[D] Priority Based
223. ConcurrentStack works on which principle?
[A] FIFO
[B] LIFO
[C] Random
[D] Priority Based
सही उत्तर: LIFO
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: LIFO
Explanation: Important question.
224. ConcurrentBag का मुख्य उपयोग क्या है?
[A] Ordered Collection
[B] Unordered Thread-Safe Collection
[C] Sorted Dictionary
[D] Immutable Collection
224. What is the primary purpose of ConcurrentBag?
[A] Ordered collection
[B] Unordered thread-safe collection
[C] Sorted dictionary
[D] Immutable collection
सही उत्तर: Unordered Thread-Safe Collection
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Unordered thread-safe collection
Explanation: Important question.
225. PLINQ का पूरा नाम क्या है?
[A] Parallel Language Integrated Query
[B] Primary LINQ
[C] Process LINQ
[D] Parallel List Integrated Query
225. What is the full form of PLINQ?
[A] Parallel Language Integrated Query
[B] Primary LINQ
[C] Process LINQ
[D] Parallel List Integrated Query
सही उत्तर: Parallel Language Integrated Query
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Parallel Language Integrated Query
Explanation: Important question.
226. PLINQ का मुख्य उद्देश्य क्या है?
[A] Sequential Execution
[B] Parallel Query Execution
[C] Database Backup
[D] Memory Allocation
226. What is the main purpose of PLINQ?
[A] Sequential execution
[B] Parallel query execution
[C] Database backup
[D] Memory allocation
सही उत्तर: Parallel Query Execution
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Parallel query execution
Explanation: Important question.
227. Parallel.ForEach() Method का मुख्य लाभ क्या है?
[A] केवल Single Thread पर चलता है
[B] Iterations को Multiple Threads पर Execute करता है
[C] Database Connection बनाता है
[D] Reflection करता है
227. What is the main advantage of Parallel.ForEach()?
[A] Runs only on a single thread
[B] Executes iterations on multiple threads
[C] Creates database connections
[D] Performs reflection
सही उत्तर: Iterations को Multiple Threads पर Execute करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Executes iterations on multiple threads
Explanation: Important question.
228. Interlocked Class का उपयोग किसलिए किया जाता है?
[A] Atomic Operations के लिए
[B] File Operations के लिए
[C] Database Access के लिए
[D] Reflection के लिए
228. Why is the Interlocked class used in C#?
[A] For atomic operations
[B] For file operations
[C] For database access
[D] For reflection
सही उत्तर: Atomic Operations के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: For atomic operations
Explanation: Important question.
229. volatile Keyword का मुख्य उद्देश्य क्या है?
[A] Method Override करना
[B] Variable को Multiple Threads में सही तरीके से Access करना
[C] Garbage Collection रोकना
[D] Inheritance Enable करना
229. What is the main purpose of the volatile keyword in C#?
[A] Override methods
[B] Ensure proper access to variables across multiple threads
[C] Stop garbage collection
[D] Enable inheritance
सही उत्तर: Variable को Multiple Threads में सही तरीके से Access करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Ensure proper access to variables across multiple threads
Explanation: Important question.
230. Lazy Class का मुख्य उद्देश्य क्या है?
[A] Object को तुरंत Create करना
[B] Object को आवश्यकता पड़ने पर Create करना
[C] Object Delete करना
[D] Memory Leak रोकना
230. What is the primary purpose of Lazy in C#?
[A] Create object immediately
[B] Create object only when needed
[C] Delete object
[D] Prevent memory leaks
सही उत्तर: Object को आवश्यकता पड़ने पर Create करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Create object only when needed
Explanation: Important question.