[C-Sharp Programming MCQS ]

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

[ C-Sharp Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
191. C# में Top-Level Statements पहली बार किस Version में Introduce किए गए?
[A] C# 7.0
[B] C# 8.0
[C] C# 9.0
[D] C# 10.0
191. In which version were Top-Level Statements introduced in C#?
[A] C# 7.0
[B] C# 8.0
[C] C# 9.0
[D] C# 10.0
सही उत्तर: C# 9.0
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: C# 9.0
Explanation: Important question.
192. Global Using Directive का मुख्य लाभ क्या है?
[A] Memory कम करना
[B] हर File में बार-बार using लिखने की आवश्यकता समाप्त करना
[C] Compilation रोकना
[D] Database Connection बनाना
192. What is the main advantage of Global Using Directive?
[A] Reduce memory
[B] Avoid writing using directives repeatedly in every file
[C] Stop compilation
[D] Create database connections
सही उत्तर: हर File में बार-बार using लिखने की आवश्यकता समाप्त करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Avoid writing using directives repeatedly in every file
Explanation: Important question.
193. C# 12 में Primary Constructor का मुख्य उद्देश्य क्या है?
[A] Loop बनाना
[B] Constructor Syntax को सरल बनाना
[C] Database Create करना
[D] Exception Handle करना
193. What is the main purpose of Primary Constructors in C# 12?
[A] Create loops
[B] Simplify constructor syntax
[C] Create databases
[D] Handle exceptions
सही उत्तर: Constructor Syntax को सरल बनाना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Simplify constructor syntax
Explanation: Important question.
194. Collection Expression Feature किस C# Version में Introduce हुई?
[A] C# 9
[B] C# 10
[C] C# 11
[D] C# 12
194. Collection Expressions were introduced in which C# version?
[A] C# 9
[B] C# 10
[C] C# 11
[D] C# 12
सही उत्तर: C# 12
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: C# 12
Explanation: Important question.
195. Source Generator का मुख्य उद्देश्य क्या है?
[A] Runtime पर Code Generate करना
[B] Compile Time पर Code Generate करना
[C] Database Generate करना
[D] Memory Allocate करना
195. What is the primary purpose of Source Generators?
[A] Generate code at runtime
[B] Generate code at compile time
[C] Generate databases
[D] Allocate memory
सही उत्तर: Compile Time पर Code Generate करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Generate code at compile time
Explanation: Important question.
196. Record Type का मुख्य लाभ क्या है?
[A] Mutable Objects
[B] Immutable Data Models
[C] Multiple Inheritance
[D] File Handling
196. What is the main advantage of Record types?
[A] Mutable objects
[B] Immutable data models
[C] Multiple inheritance
[D] File handling
सही उत्तर: Immutable Data Models
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Immutable data models
Explanation: Important question.
197. Pattern Matching का उपयोग किसलिए किया जाता है?
[A] Database Query के लिए
[B] Type एवं Value के आधार पर निर्णय लेने के लिए
[C] File Copy करने के लिए
[D] Memory Allocate करने के लिए
197. Why is Pattern Matching used in C#?
[A] For database queries
[B] To make decisions based on type and value
[C] To copy files
[D] To allocate memory
सही उत्तर: Type एवं Value के आधार पर निर्णय लेने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To make decisions based on type and value
Explanation: Important question.
198. Span का मुख्य लाभ क्या है?
[A] Database Access
[B] High Performance Memory Access
[C] Thread Creation
[D] Network Programming
198. What is the main advantage of Span?
[A] Database access
[B] High-performance memory access
[C] Thread creation
[D] Network programming
सही उत्तर: High Performance Memory Access
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: High-performance memory access
Explanation: Important question.
199. readonly struct का मुख्य लाभ क्या है?
[A] Object Mutable रहता है
[B] Struct Immutable बन जाता है और Performance बेहतर होती है
[C] Database तेज चलता है
[D] Garbage Collection बंद हो जाती है
199. What is the main advantage of a readonly struct?
[A] Object remains mutable
[B] Struct becomes immutable and improves performance
[C] Database becomes faster
[D] Garbage collection stops
सही उत्तर: Struct Immutable बन जाता है और Performance बेहतर होती है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Struct becomes immutable and improves performance
Explanation: Important question.
200. C# Interview में Performance Optimization के लिए सबसे उपयुक्त Collection कौन-सा माना जाता है जब Key-Value Lookup तेज चाहिए?
[A] ArrayList
[B] List
[C] Dictionary
[D] Queue
200. Which collection is most suitable for fast key-value lookup in C# performance optimization?
[A] ArrayList
[B] List
[C] Dictionary
[D] Queue
सही उत्तर: Dictionary
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Dictionary
Explanation: Important question.