[C-Sharp Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ C-Sharp Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
301. Static Constructor कब call होता है?
[A] Object create होने पर
[B] Class load होने पर एक बार
[C] Method call पर
[D] Garbage collection पर
301. When is a static constructor called?
[A] On object creation
[B] Once when class is loaded
[C] On method call
[D] On garbage collection
सही उत्तर: Class load होने पर एक बार
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Once when class is loaded
Explanation: Important question.
302. Extension Method किस class में define किया जाता है?
[A] Same class
[B] Static class
[C] Abstract class
[D] Interface
302. In which class are extension methods defined?
[A] Same class
[B] Static class
[C] Abstract class
[D] Interface
सही उत्तर: Static class
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Static class
Explanation: Important question.
303. Extension Method का पहला parameter क्या होता है?
[A] this keyword के साथ target type
[B] string type
[C] int type
[D] object only
303. What is the first parameter in an extension method?
[A] Target type with this keyword
[B] String type
[C] Int type
[D] Object only
सही उत्तर: this keyword के साथ target type
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Target type with this keyword
Explanation: Important question.
304. LINQ में Deferred Execution का मतलब क्या है?
[A] Immediately execution
[B] Query execution तब होती है जब iterate किया जाए
[C] Compilation time execution
[D] Memory delete
304. What is Deferred Execution in LINQ?
[A] Immediate execution
[B] Execution happens when iterated
[C] Compile-time execution
[D] Memory deletion
सही उत्तर: Query execution तब होती है जब iterate किया जाए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Execution happens when iterated
Explanation: Important question.
305. Immediate Execution LINQ में कैसे होता है?
[A] ToList() के द्वारा
[B] Select() के द्वारा
[C] Where() के द्वारा
[D] OrderBy() के द्वारा
305. How is Immediate Execution done in LINQ?
[A] By ToList()
[B] By Select()
[C] By Where()
[D] By OrderBy()
सही उत्तर: ToList() के द्वारा
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: By ToList()
Explanation: Important question.
306. Expression-bodied Member का उपयोग क्या करता है?
[A] Short syntax methods/properties
[B] Database mapping
[C] Thread locking
[D] Memory allocation
306. What is the use of Expression-bodied members?
[A] Database mapping
[B] Short syntax for methods/properties
[C] Thread locking
[D] Memory allocation
सही उत्तर: Short syntax methods/properties
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Short syntax for methods/properties
Explanation: Important question.
307. C# में Partial Class का मुख्य उपयोग क्या है?
[A] एक ही class को multiple files में split करना
[B] Memory increase करना
[C] Thread create करना
[D] Database connect करना
307. What is the main use of Partial Class in C#?
[A] Split a class into multiple files
[B] Increase memory
[C] Create thread
[D] Connect database
सही उत्तर: एक ही class को multiple files में split करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Split a class into multiple files
Explanation: Important question.
308. Partial Method किसके अंदर define किया जाता है?
[A] Struct
[B] Partial Class
[C] Interface
[D] Delegate
308. Where is a Partial Method defined?
[A] Struct
[B] Partial Class
[C] Interface
[D] Delegate
सही उत्तर: Partial Class
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Partial Class
Explanation: Important question.
309. C# में Anonymous Type क्या होता है?
[A] Named class
[B] Without name object type
[C] Interface type
[D] Struct type
309. What is Anonymous Type in C#?
[A] Named class
[B] Object type without name
[C] Interface type
[D] Struct type
सही उत्तर: Without name object type
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Object type without name
Explanation: Important question.
310. Anonymous Type का उपयोग किसलिए किया जाता है?
[A] Temporary data structure बनाने के लिए
[B] Database design
[C] Thread management
[D] File handling
310. What is Anonymous Type used for?
[A] Create temporary data structure
[B] Database design
[C] Thread management
[D] File handling
सही उत्तर: Temporary data structure बनाने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Create temporary data structure
Explanation: Important question.