[C-Sharp Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ C-Sharp Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
21. C# में Method का मुख्य उद्देश्य क्या है?
[A] Code Reusability
[B] Variable Declaration
[C] Memory Allocation
[D] Looping
21. What is the main purpose of a Method in C#?
[A] Code Reusability
[B] Variable Declaration
[C] Memory Allocation
[D] Looping
सही उत्तर: Code Reusability
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Code Reusability
Explanation: Important question.
22. C# में Inheritance के लिए कौन-सा चिन्ह प्रयोग किया जाता है?
[A] :
[B] ::
[C] =>
[D] ==
22. Which symbol is used for inheritance in C#?
[A] :
[B] ::
[C] =>
[D] ==
सही उत्तर: :
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: :
Explanation: Important question.
23. C# में Parent Class को क्या कहा जाता है?
[A] Derived Class
[B] Base Class
[C] Child Class
[D] Abstract Class
23. What is the parent class called in C#?
[A] Derived Class
[B] Base Class
[C] Child Class
[D] Abstract Class
सही उत्तर: Base Class
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Base Class
Explanation: Important question.
24. C# में Child Class को क्या कहा जाता है?
[A] Base Class
[B] Derived Class
[C] Static Class
[D] Main Class
24. What is the child class called in C#?
[A] Base Class
[B] Derived Class
[C] Static Class
[D] Main Class
सही उत्तर: Derived Class
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Derived Class
Explanation: Important question.
25. C# में Polymorphism का अर्थ क्या है?
[A] एक ही नाम के अनेक रूप
[B] Memory Allocation
[C] Loop Execution
[D] Variable Declaration
25. What is Polymorphism in C#?
[A] Many forms of the same name
[B] Memory Allocation
[C] Loop Execution
[D] Variable Declaration
सही उत्तर: एक ही नाम के अनेक रूप
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Many forms of the same name
Explanation: Important question.
26. C# में Encapsulation का उद्देश्य क्या है?
[A] Data Hiding
[B] Looping
[C] Sorting
[D] Compilation
26. What is the purpose of Encapsulation in C#?
[A] Data Hiding
[B] Looping
[C] Sorting
[D] Compilation
सही उत्तर: Data Hiding
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Data Hiding
Explanation: Important question.
27. C# में Abstract Class का Object बनाया जा सकता है?
[A] हाँ
[B] नहीं
[C] कभी-कभी
[D] केवल Static में
27. Can an Abstract Class be instantiated in C#?
[A] Yes
[B] No
[C] Sometimes
[D] Only in Static
सही उत्तर: नहीं
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: No
Explanation: Important question.
28. C# में Interface का उपयोग किसलिए किया जाता है?
[A] Implementation छिपाने के लिए
[B] Multiple Inheritance जैसा व्यवहार देने के लिए
[C] Array बनाने के लिए
[D] Loop बनाने के लिए
28. Why is Interface used in C#?
[A] To hide implementation
[B] To achieve multiple inheritance-like behavior
[C] To create arrays
[D] To create loops
सही उत्तर: Multiple Inheritance जैसा व्यवहार देने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To achieve multiple inheritance-like behavior
Explanation: Important question.
29. C# में Exception Handling के लिए कौन-सा Keyword प्रयोग किया जाता है?
[A] catch
[B] throw
[C] try
[D] उपरोक्त सभी
29. Which keyword is used for exception handling in C#?
[A] catch
[B] throw
[C] try
[D] All of the above
सही उत्तर: उपरोक्त सभी
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: All of the above
Explanation: Important question.
30. C# में Finally Block कब Execute होता है?
[A] केवल Exception आने पर
[B] केवल Exception न आने पर
[C] हमेशा
[D] कभी नहीं
30. When does the Finally block execute in C#?
[A] Only when an exception occurs
[B] Only when no exception occurs
[C] Always
[D] Never
सही उत्तर: हमेशा
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Always
Explanation: Important question.