[C-Sharp Programming MCQS ]

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

[ C-Sharp Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
211. C# में unchecked Keyword का मुख्य उद्देश्य क्या है?
[A] Null Check करना
[B] Overflow Checking को Ignore करना
[C] Exception Handle करना
[D] Memory Allocate करना
211. What is the primary purpose of the unchecked keyword in C#?
[A] Perform null checking
[B] Ignore overflow checking
[C] Handle exceptions
[D] Allocate memory
सही उत्तर: Overflow Checking को Ignore करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Ignore overflow checking
Explanation: Important question.
212. C# में stackalloc Keyword का उपयोग किसलिए किया जाता है?
[A] Heap Memory Allocate करने के लिए
[B] Stack Memory Allocate करने के लिए
[C] Database Memory Allocate करने के लिए
[D] Managed Heap Create करने के लिए
212. Why is the stackalloc keyword used in C#?
[A] To allocate heap memory
[B] To allocate stack memory
[C] To allocate database memory
[D] To create managed heap
सही उत्तर: Stack Memory Allocate करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To allocate stack memory
Explanation: Important question.
213. C# में Span मुख्य रूप से किस प्रकार की Memory को Represent करता है?
[A] Only Heap Memory
[B] Contiguous Memory Region
[C] Database Memory
[D] Virtual Memory
213. What type of memory does Span primarily represent?
[A] Only heap memory
[B] Contiguous memory region
[C] Database memory
[D] Virtual memory
सही उत्तर: Contiguous Memory Region
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Contiguous memory region
Explanation: Important question.
214. ReadOnlySpan का मुख्य लाभ क्या है?
[A] Memory को Modify करना
[B] Memory को Read-Only Access देना
[C] Database Connect करना
[D] File Delete करना
214. What is the main advantage of ReadOnlySpan?
[A] Modify memory
[B] Provide read-only access to memory
[C] Connect to database
[D] Delete files
सही उत्तर: Memory को Read-Only Access देना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Provide read-only access to memory
Explanation: Important question.
215. C# में Memory का उपयोग मुख्य रूप से किस Scenario में किया जाता है?
[A] Synchronous Memory Access
[B] Asynchronous Memory Access
[C] Database Query
[D] Reflection
215. Memory is mainly used for which scenario?
[A] Synchronous memory access
[B] Asynchronous memory access
[C] Database queries
[D] Reflection
सही उत्तर: Asynchronous Memory Access
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Asynchronous memory access
Explanation: Important question.
216. IAsyncEnumerable का मुख्य उद्देश्य क्या है?
[A] Synchronous Iteration
[B] Asynchronous Streaming of Data
[C] Exception Handling
[D] File Compression
216. What is the main purpose of IAsyncEnumerable?
[A] Synchronous iteration
[B] Asynchronous streaming of data
[C] Exception handling
[D] File compression
सही उत्तर: Asynchronous Streaming of Data
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Asynchronous streaming of data
Explanation: Important question.
217. await foreach का उपयोग किसके साथ किया जाता है?
[A] IEnumerable
[B] IQueryable
[C] IAsyncEnumerable
[D] List
217. The await foreach statement is used with which type?
[A] IEnumerable
[B] IQueryable
[C] IAsyncEnumerable
[D] List
सही उत्तर: IAsyncEnumerable
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: IAsyncEnumerable
Explanation: Important question.
218. ValueTask का मुख्य लाभ क्या है?
[A] हमेशा Task से धीमा होता है
[B] छोटे Operations में Allocation कम करता है
[C] केवल Database के लिए उपयोग होता है
[D] Garbage Collector को Disable करता है
218. What is the main advantage of ValueTask?
[A] It is always slower than Task
[B] Reduces allocations for small operations
[C] Used only for databases
[D] Disables garbage collection
सही उत्तर: छोटे Operations में Allocation कम करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Reduces allocations for small operations
Explanation: Important question.
219. ConfigureAwait(false) का उपयोग सामान्यतः क्यों किया जाता है?
[A] Compilation रोकने के लिए
[B] Context Capture Avoid करने के लिए
[C] Memory Free करने के लिए
[D] Garbage Collection रोकने के लिए
219. Why is ConfigureAwait(false) commonly used?
[A] To stop compilation
[B] To avoid capturing the synchronization context
[C] To free memory
[D] To stop garbage collection
सही उत्तर: Context Capture Avoid करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To avoid capturing the synchronization context
Explanation: Important question.
220. C# में CancellationTokenSource का उपयोग किसलिए किया जाता है?
[A] Database Connection बनाने के लिए
[B] CancellationToken Generate एवं Cancel करने के लिए
[C] Exception Throw करने के लिए
[D] Reflection करने के लिए
220. Why is CancellationTokenSource used in C#?
[A] To create database connections
[B] To generate and cancel CancellationTokens
[C] To throw exceptions
[D] To perform reflection
सही उत्तर: CancellationToken Generate एवं Cancel करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To generate and cancel CancellationTokens
Explanation: Important question.