[C-Sharp Programming MCQS ]

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

[ C-Sharp Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
391. finally block कब execute होता है?
[A] Only success case में
[B] Always execute होता है
[C] Only error case में
[D] Never execute होता है
391. When does finally block execute?
[A] Only on success
[B] Always executes
[C] Only on error
[D] Never executes
सही उत्तर: Always execute होता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Always executes
Explanation: Important question.
392. throw और throw ex में अंतर क्या है?
[A] Same हैं
[B] throw original stack trace preserve करता है
[C] throw ex faster है
[D] throw memory delete करता है
392. What is the difference between throw and throw ex?
[A] Both are same
[B] throw preserves original stack trace
[C] throw ex is faster
[D] throw deletes memory
सही उत्तर: throw original stack trace preserve करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: throw preserves original stack trace
Explanation: Important question.
393. Custom Exception बनाने के लिए क्या inherit करना पड़ता है?
[A] System.Object
[B] System.Exception
[C] System.Thread
[D] System.Memory
393. What should be inherited to create custom exception?
[A] System.Object
[B] System.Exception
[C] System.Thread
[D] System.Memory
सही उत्तर: System.Exception
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: System.Exception
Explanation: Important question.
394. checked keyword का उपयोग किसलिए होता है?
[A] Overflow ignore करने के लिए
[B] Overflow detect करने के लिए
[C] Memory increase करने के लिए
[D] Thread block करने के लिए
394. What is the use of checked keyword?
[A] Ignore overflow
[B] Detect overflow
[C] Increase memory
[D] Block thread
सही उत्तर: Overflow detect करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Detect overflow
Explanation: Important question.
395. unchecked keyword का उपयोग क्या करता है?
[A] Overflow throw करता है
[B] Overflow ignore करता है
[C] Thread kill करता है
[D] Memory clear करता है
395. What does unchecked keyword do?
[A] Throws overflow
[B] Ignores overflow
[C] Kills thread
[D] Clears memory
सही उत्तर: Overflow ignore करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Ignores overflow
Explanation: Important question.
396. C# में abstraction का मुख्य उद्देश्य क्या है?
[A] Memory increase करना
[B] Implementation hide करना और केवल जरूरी details दिखाना
[C] Thread create करना
[D] Database delete करना
396. What is the main purpose of abstraction in C#?
[A] Increase memory
[B] Hide implementation and show only essential details
[C] Create thread
[D] Delete database
सही उत्तर: Implementation hide करना और केवल जरूरी details दिखाना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Hide implementation and show only essential details
Explanation: Important question.
397. Encapsulation का मुख्य लाभ क्या है?
[A] Data leakage बढ़ाना
[B] Data hiding और security प्रदान करना
[C] CPU increase करना
[D] Thread blocking करना
397. What is the main benefit of encapsulation?
[A] Increase data leakage
[B] Provide data hiding and security
[C] Increase CPU
[D] Block threads
सही उत्तर: Data hiding और security प्रदान करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Provide data hiding and security
Explanation: Important question.
398. Polymorphism का मतलब क्या है?
[A] Single behavior only
[B] Multiple forms of same method
[C] Memory allocation
[D] File handling
398. What does polymorphism mean?
[A] Single behavior only
[B] Multiple forms of same method
[C] Memory allocation
[D] File handling
सही उत्तर: Multiple forms of same method
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Multiple forms of same method
Explanation: Important question.
399. Method Overloading क्या है?
[A] Same method name different parameters
[B] Same method name same parameters
[C] Different class methods
[D] Interface implementation
399. What is method overloading?
[A] Same method name with different parameters
[B] Same method name same parameters
[C] Different class methods
[D] Interface implementation
सही उत्तर: Same method name different parameters
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Same method name with different parameters
Explanation: Important question.
400. Method Overriding कब होता है?
[A] Same class में
[B] Inheritance में base method redefine करने पर
[C] Static method में
[D] Constructor में
400. When does method overriding occur?
[A] Same class
[B] Redefining base method in inheritance
[C] Static method
[D] Constructor
सही उत्तर: Inheritance में base method redefine करने पर
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Redefining base method in inheritance
Explanation: Important question.