[C-Sharp Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ C-Sharp Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
291. Switch Expression C# में कब introduce हुआ?
[A] C# 6
[B] C# 7
[C] C# 8
[D] C# 9
291. When was Switch Expression introduced in C#?
[A] C# 6
[B] C# 7
[C] C# 8
[D] C# 9
सही उत्तर: C# 8
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: C# 8
Explanation: Important question.
292. Nullable Reference Type का मुख्य उद्देश्य क्या है?
[A] Performance बढ़ाना
[B] Null reference exception कम करना
[C] Memory leak बढ़ाना
[D] Thread stop करना
292. What is the main purpose of Nullable Reference Types?
[A] Increase performance
[B] Reduce null reference exceptions
[C] Increase memory leaks
[D] Stop threads
सही उत्तर: Null reference exception कम करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Reduce null reference exceptions
Explanation: Important question.
293. Record type C# में मुख्य रूप से किसलिए उपयोग होता है?
[A] Database design
[B] Immutable data objects
[C] Threading
[D] File handling
293. What is the main use of Record type in C#?
[A] Database design
[B] Immutable data objects
[C] Threading
[D] File handling
सही उत्तर: Immutable data objects
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Immutable data objects
Explanation: Important question.
294. init-only setter का उपयोग किसलिए होता है?
[A] Value change हर समय
[B] Object initialization के बाद read-only behavior
[C] Memory delete
[D] Thread lock
294. What is the purpose of init-only setter?
[A] Always allow value change
[B] Make property read-only after initialization
[C] Delete memory
[D] Lock thread
सही उत्तर: Object initialization के बाद read-only behavior
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Make property read-only after initialization
Explanation: Important question.
295. Memory और Span में मुख्य अंतर क्या है?
[A] दोनों same हैं
[B] Memory async scenarios support करता है
[C] Span database use करता है
[D] Memory unmanaged नहीं है
295. What is the main difference between Memory and Span?
[A] Both are same
[B] Memory supports async scenarios
[C] Span is used for database
[D] Memory is unmanaged
सही उत्तर: Memory async scenarios support करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Memory supports async scenarios
Explanation: Important question.
296. ref struct का मुख्य उद्देश्य क्या है?
[A] Heap allocation
[B] Stack-only type safety
[C] Database mapping
[D] Thread creation
296. What is the purpose of ref struct?
[A] Heap allocation
[B] Stack-only type safety
[C] Database mapping
[D] Thread creation
सही उत्तर: Stack-only type safety
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Stack-only type safety
Explanation: Important question.
297. C# में Local Function का उपयोग किसलिए किया जाता है?
[A] Class बनाना
[B] Method के अंदर Method define करना
[C] Database query लिखना
[D] Thread create करना
297. What is the use of Local Function in C#?
[A] Create a class
[B] Define a method inside another method
[C] Write database query
[D] Create thread
सही उत्तर: Method के अंदर Method define करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Define a method inside another method
Explanation: Important question.
298. Default Interface Implementation C# में किस version में आया?
[A] C# 6
[B] C# 7
[C] C# 8
[D] C# 9
298. In which version was Default Interface Implementation introduced?
[A] C# 6
[B] C# 7
[C] C# 8
[D] C# 9
सही उत्तर: C# 8
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: C# 8
Explanation: Important question.
299. Tuple Deconstruction का मुख्य उपयोग क्या है?
[A] Database mapping
[B] Tuple values को अलग-अलग variables में split करना
[C] Memory allocation
[D] Threading
299. What is the main use of Tuple Deconstruction?
[A] Database mapping
[B] Split tuple values into variables
[C] Memory allocation
[D] Threading
सही उत्तर: Tuple values को अलग-अलग variables में split करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Split tuple values into variables
Explanation: Important question.
300. Async Main method C# में कब support हुआ?
[A] C# 5
[B] C# 6
[C] C# 7.1
[D] C# 8
300. When was Async Main supported in C#?
[A] C# 5
[B] C# 6
[C] C# 7.1
[D] C# 8
सही उत्तर: C# 7.1
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: C# 7.1
Explanation: Important question.