[C-Sharp Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ C-Sharp Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
421. Equals() method का उपयोग क्या करता है?
[A] Memory compare
[B] Object equality check
[C] Thread compare
[D] File compare
421. What does Equals() method do?
[A] Memory compare
[B] Object equality check
[C] Thread compare
[D] File compare
सही उत्तर: Object equality check
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Object equality check
Explanation: Important question.
422. GetHashCode() का उपयोग किसलिए होता है?
[A] Object delete करने के लिए
[B] Hash-based collections में performance के लिए
[C] Thread control के लिए
[D] Memory clear के लिए
422. What is GetHashCode() used for?
[A] Delete object
[B] Performance in hash-based collections
[C] Control thread
[D] Clear memory
सही उत्तर: Hash-based collections में performance के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Performance in hash-based collections
Explanation: Important question.
423. ToString() method का default behavior क्या है?
[A] Object memory address return करता है
[B] Class name return करता है
[C] Null return करता है
[D] Exception throw करता है
423. What is default behavior of ToString() method?
[A] Returns memory address
[B] Returns class name
[C] Returns null
[D] Throws exception
सही उत्तर: Class name return करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Returns class name
Explanation: Important question.
424. finalize और destructor का relation क्या है?
[A] Same हैं
[B] Destructor internally finalize call करता है
[C] Finalize static होता है
[D] Destructor unmanaged नहीं होता
424. What is the relation between finalize and destructor?
[A] Both are same
[B] Destructor internally calls finalize
[C] Finalize is static
[D] Destructor is not unmanaged
सही उत्तर: Destructor internally finalize call करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Destructor internally calls finalize
Explanation: Important question.
425. C# में interface को implement कैसे किया जाता है?
[A] extends keyword से
[B] implements keyword से
[C] Colon symbol से
[D] using keyword से
425. How is an interface implemented in C#?
[A] Using extends keyword
[B] Using implements keyword
[C] Using colon symbol
[D] Using using keyword
सही उत्तर: Colon symbol से
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Using colon symbol
Explanation: Important question.
426. Multiple interfaces implement करने के लिए क्या use होता है?
[A] Single inheritance
[B] Comma separated interfaces
[C] Only abstract class
[D] Delegate
426. How are multiple interfaces implemented?
[A] Single inheritance
[B] Comma separated interfaces
[C] Only abstract class
[D] Delegate
सही उत्तर: Comma separated interfaces
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Comma separated interfaces
Explanation: Important question.
427. Abstract method कहाँ declare किया जाता है?
[A] Interface में
[B] Abstract class में
[C] Struct में
[D] Static class में
427. Where is an abstract method declared?
[A] Interface
[B] Abstract class
[C] Struct
[D] Static class
सही उत्तर: Abstract class में
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Abstract class
Explanation: Important question.
428. Virtual method का मुख्य उपयोग क्या है?
[A] Method delete करना
[B] Method overriding allow करना
[C] Thread create करना
[D] Memory clear करना
428. What is the main use of virtual method?
[A] Delete method
[B] Allow method overriding
[C] Create thread
[D] Clear memory
सही उत्तर: Method overriding allow करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Allow method overriding
Explanation: Important question.
429. Override keyword कब use किया जाता है?
[A] New method बनाने के लिए
[B] Base class method redefine करने के लिए
[C] Thread stop करने के लिए
[D] Memory free करने के लिए
429. When is override keyword used?
[A] Create new method
[B] Redefine base class method
[C] Stop thread
[D] Free memory
सही उत्तर: Base class method redefine करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Redefine base class method
Explanation: Important question.
430. new keyword method hiding में क्या करता है?
[A] Base method delete करता है
[B] Method hide करता है
[C] Thread create करता है
[D] Memory increase करता है
430. What does new keyword do in method hiding?
[A] Deletes base method
[B] Hides method
[C] Creates thread
[D] Increases memory
सही उत्तर: Method hide करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Hides method
Explanation: Important question.