[C-Sharp Programming MCQS ]

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

[ C-Sharp Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
201. C# में ref Parameter का मुख्य उद्देश्य क्या है?
[A] Value की Copy भेजना
[B] Reference द्वारा Value Pass करना
[C] केवल Output देना
[D] Method Override करना
201. What is the main purpose of a ref parameter in C#?
[A] Pass a copy of the value
[B] Pass value by reference
[C] Provide output only
[D] Override a method
सही उत्तर: Reference द्वारा Value Pass करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Pass value by reference
Explanation: Important question.
202. C# में out Parameter की विशेषता क्या है?
[A] Method Call से पहले Initialize करना आवश्यक है
[B] Method के अंदर Value Assign करना आवश्यक है
[C] यह केवल Read Only होता है
[D] यह Constant होता है
202. What is the characteristic of an out parameter in C#?
[A] It must be initialized before method call
[B] It must be assigned inside the method
[C] It is read-only
[D] It is constant
सही उत्तर: Method के अंदर Value Assign करना आवश्यक है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: It must be assigned inside the method
Explanation: Important question.
203. C# में in Parameter का मुख्य लाभ क्या है?
[A] Method Value बदल सकता है
[B] Read-only Reference Pass करना
[C] Object Delete करना
[D] Memory Free करना
203. What is the main advantage of an in parameter in C#?
[A] Method can modify the value
[B] Pass a read-only reference
[C] Delete objects
[D] Free memory
सही उत्तर: Read-only Reference Pass करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Pass a read-only reference
Explanation: Important question.
204. C# में ValueTuple किस Version में Introduce हुआ?
[A] C# 5
[B] C# 6
[C] C# 7
[D] C# 8
204. In which version was ValueTuple introduced?
[A] C# 5
[B] C# 6
[C] C# 7
[D] C# 8
सही उत्तर: C# 7
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: C# 7
Explanation: Important question.
205. C# में nameof Operator Compile Time पर क्या Return करता है?
[A] Variable Value
[B] Variable Name
[C] Memory Address
[D] Data Type
205. What does the nameof operator return at compile time?
[A] Variable value
[B] Variable name
[C] Memory address
[D] Data type
सही उत्तर: Variable Name
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Variable name
Explanation: Important question.
206. C# में Expression-bodied Method किस Symbol का उपयोग करती है?
[A] ->
[B] =>
[C] ==>
[D] ::
206. Which symbol is used by Expression-bodied methods in C#?
[A] ->
[B] =>
[C] ==>
[D] ::
सही उत्तर: =>
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: =>
Explanation: Important question.
207. C# में Generic Constraint "where T : class" का अर्थ क्या है?
[A] T केवल Value Type होगा
[B] T केवल Reference Type होगा
[C] T केवल Integer होगा
[D] T केवल Enum होगा
207. What does the generic constraint "where T : class" mean?
[A] T must be a value type
[B] T must be a reference type
[C] T must be an integer
[D] T must be an enum
सही उत्तर: T केवल Reference Type होगा
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: T must be a reference type
Explanation: Important question.
208. C# में Generic Constraint "where T : struct" का अर्थ क्या है?
[A] T केवल Reference Type होगा
[B] T केवल Value Type होगा
[C] T केवल String होगा
[D] T केवल Object होगा
208. What does the generic constraint "where T : struct" mean?
[A] T must be a reference type
[B] T must be a value type
[C] T must be a string
[D] T must be an object
सही उत्तर: T केवल Value Type होगा
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: T must be a value type
Explanation: Important question.
209. C# में params Keyword का उपयोग किसलिए किया जाता है?
[A] Multiple Return Values के लिए
[B] Variable Number of Arguments Pass करने के लिए
[C] Exception Throw करने के लिए
[D] Inheritance Enable करने के लिए
209. Why is the params keyword used in C#?
[A] For multiple return values
[B] To pass variable number of arguments
[C] To throw exceptions
[D] To enable inheritance
सही उत्तर: Variable Number of Arguments Pass करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To pass variable number of arguments
Explanation: Important question.
210. C# में checked Keyword का उपयोग किसलिए किया जाता है?
[A] Null Check के लिए
[B] Arithmetic Overflow Check करने के लिए
[C] File Check करने के लिए
[D] Database Check करने के लिए
210. Why is the checked keyword used in C#?
[A] For null checking
[B] To check arithmetic overflow
[C] To check files
[D] To check databases
सही उत्तर: Arithmetic Overflow Check करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To check arithmetic overflow
Explanation: Important question.