[C-Sharp Programming MCQS ]

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

[ C-Sharp Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
321. Deadlock कब होता है?
[A] जब memory free हो
[B] जब threads एक दूसरे का resource wait करें
[C] जब CPU fast हो
[D] जब program start हो
321. When does a deadlock occur?
[A] When memory is free
[B] When threads wait for each other’s resources
[C] When CPU is fast
[D] When program starts
सही उत्तर: जब threads एक दूसरे का resource wait करें
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: When threads wait for each other’s resources
Explanation: Important question.
322. ConfigureAwait(false) का फायदा क्या है?
[A] UI freeze करता है
[B] Context switch avoid करता है
[C] Memory increase करता है
[D] Thread create करता है
322. What is the benefit of ConfigureAwait(false)?
[A] Freezes UI
[B] Avoids context switch
[C] Increases memory
[D] Creates thread
सही उत्तर: Context switch avoid करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Avoids context switch
Explanation: Important question.
323. Task.WhenAll() क्या करता है?
[A] Single task run करता है
[B] Multiple tasks को parallel execute करता है
[C] Memory delete करता है
[D] Thread stop करता है
323. What does Task.WhenAll() do?
[A] Runs single task
[B] Executes multiple tasks in parallel
[C] Deletes memory
[D] Stops thread
सही उत्तर: Multiple tasks को parallel execute करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Executes multiple tasks in parallel
Explanation: Important question.
324. Task.WhenAny() क्या return करता है?
[A] All tasks
[B] First completed task
[C] Error
[D] Null
324. What does Task.WhenAny() return?
[A] All tasks
[B] First completed task
[C] Error
[D] Null
सही उत्तर: First completed task
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: First completed task
Explanation: Important question.
325. CancellationToken का उपयोग किसलिए होता है?
[A] Thread create करने के लिए
[B] Task cancel करने के लिए
[C] Memory allocate करने के लिए
[D] Database connect करने के लिए
325. What is CancellationToken used for?
[A] Create thread
[B] Cancel task
[C] Allocate memory
[D] Connect database
सही उत्तर: Task cancel करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Cancel task
Explanation: Important question.
326. Parallel.ForEach का मुख्य उद्देश्य क्या है?
[A] Sequential execution
[B] Parallel processing of collection
[C] Database query
[D] File delete
326. What is the main purpose of Parallel.ForEach?
[A] Sequential execution
[B] Parallel processing of collection
[C] Database query
[D] File delete
सही उत्तर: Parallel processing of collection
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Parallel processing of collection
Explanation: Important question.
327. C# में SemaphoreSlim का उपयोग किसलिए किया जाता है?
[A] Memory allocation के लिए
[B] Limited number of threads को control करने के लिए
[C] Database connection के लिए
[D] File compression के लिए
327. What is SemaphoreSlim used for in C#?
[A] For memory allocation
[B] To control limited number of threads
[C] For database connection
[D] For file compression
सही उत्तर: Limited number of threads को control करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To control limited number of threads
Explanation: Important question.
328. Mutex का मुख्य उपयोग क्या है?
[A] Multiple processes में synchronization
[B] Memory increase करना
[C] File delete करना
[D] UI design करना
328. What is the main use of Mutex?
[A] Increase memory
[B] Synchronization across multiple processes
[C] Delete file
[D] Design UI
सही उत्तर: Multiple processes में synchronization
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Synchronization across multiple processes
Explanation: Important question.
329. Monitor class का उपयोग किसलिए किया जाता है?
[A] Database access
[B] Thread synchronization
[C] File handling
[D] JSON parsing
329. What is the use of Monitor class?
[A] Database access
[B] Thread synchronization
[C] File handling
[D] JSON parsing
सही उत्तर: Thread synchronization
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Thread synchronization
Explanation: Important question.
330. lock keyword internally किसका use करता है?
[A] Mutex
[B] Monitor
[C] Semaphore
[D] Task
330. What does the lock keyword internally use?
[A] Mutex
[B] Monitor
[C] Semaphore
[D] Task
सही उत्तर: Monitor
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Monitor
Explanation: Important question.