[C-Sharp Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ C-Sharp Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
361. ConcurrentDictionary का मुख्य उपयोग क्या है?
[A] Single-thread storage
[B] Thread-safe key-value storage
[C] File storage
[D] Database storage
361. What is the main use of ConcurrentDictionary?
[A] Single-thread storage
[B] Thread-safe key-value storage
[C] File storage
[D] Database storage
सही उत्तर: Thread-safe key-value storage
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Thread-safe key-value storage
Explanation: Important question.
362. ConcurrentQueue किसलिए use होता है?
[A] Stack behavior के लिए
[B] Thread-safe FIFO queue के लिए
[C] Database transactions के लिए
[D] File handling के लिए
362. What is ConcurrentQueue used for?
[A] Stack behavior
[B] Thread-safe FIFO queue
[C] Database transactions
[D] File handling
सही उत्तर: Thread-safe FIFO queue के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Thread-safe FIFO queue
Explanation: Important question.
363. Immutable object का मतलब क्या है?
[A] Changeable object
[B] Object जिसका state change नहीं होता
[C] Thread object
[D] Database object
363. What is an immutable object?
[A] Changeable object
[B] Object whose state cannot change
[C] Thread object
[D] Database object
सही उत्तर: Object जिसका state change नहीं होता
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Object whose state cannot change
Explanation: Important question.
364. Immutable objects thread-safe क्यों होते हैं?
[A] Memory leak नहीं करते
[B] State change नहीं होता
[C] CPU increase करते हैं
[D] Garbage collect होते हैं
364. Why are immutable objects thread-safe?
[A] No memory leak
[B] State does not change
[C] Increase CPU
[D] Garbage collected
सही उत्तर: State change नहीं होता
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: State does not change
Explanation: Important question.
365. Span का सबसे बड़ा फायदा क्या है?
[A] Heap allocation increase
[B] Stack based memory efficiency
[C] Database optimization
[D] Thread creation
365. What is the biggest advantage of Span?
[A] Increase heap allocation
[B] Stack-based memory efficiency
[C] Database optimization
[D] Thread creation
सही उत्तर: Stack based memory efficiency
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Stack-based memory efficiency
Explanation: Important question.
366. Memory कब उपयोग किया जाता है?
[A] Synchronous only
[B] Async scenarios में
[C] Thread creation में
[D] File deletion में
366. When is Memory used?
[A] Synchronous only
[B] In async scenarios
[C] Thread creation
[D] File deletion
सही उत्तर: Async scenarios में
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: In async scenarios
Explanation: Important question.
367. C# में ref keyword का उपयोग किसलिए किया जाता है?
[A] Value copy pass करने के लिए
[B] Reference pass करने के लिए
[C] Thread create करने के लिए
[D] Memory free करने के लिए
367. What is the use of ref keyword in C#?
[A] Pass value by copy
[B] Pass by reference
[C] Create thread
[D] Free memory
सही उत्तर: Reference pass करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Pass by reference
Explanation: Important question.
368. out keyword का मुख्य उद्देश्य क्या है?
[A] Value return करना
[B] Multiple values return करना
[C] Thread control करना
[D] File handling करना
368. What is the main purpose of out keyword?
[A] Return single value
[B] Return multiple values
[C] Control thread
[D] File handling
सही उत्तर: Multiple values return करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Return multiple values
Explanation: Important question.
369. in keyword का उपयोग किसलिए होता है?
[A] Input-only parameter pass करने के लिए
[B] Output parameter के लिए
[C] Memory allocation के लिए
[D] Database connection के लिए
369. What is the use of in keyword?
[A] Input-only parameter passing
[B] Output parameter
[C] Memory allocation
[D] Database connection
सही उत्तर: Input-only parameter pass करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Input-only parameter passing
Explanation: Important question.
370. params keyword का उपयोग क्या करता है?
[A] Fixed parameters allow करता है
[B] Variable number of arguments allow करता है
[C] Thread create करता है
[D] Exception throw करता है
370. What does params keyword do?
[A] Allows fixed parameters
[B] Allows variable number of arguments
[C] Creates thread
[D] Throws exception
सही उत्तर: Variable number of arguments allow करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Allows variable number of arguments
Explanation: Important question.