[ DOT NET Core MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ DOT NET Core MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
191. Interface क्या है?
[A] Contract
[B] Database
[C] Variable
[D] Namespace
191. What is an Interface?
[A] Contract
[B] Database
[C] Variable
[D] Namespace
सही उत्तर: Contract
व्याख्या: Interface केवल Method Signatures Define करती है।
Correct Answer: Contract
Explanation: An interface defines method signatures.
192. Interface में Method Default रूप से क्या होती है?
[A] Public Abstract
[B] Private
[C] Protected
[D] Static
192. What are interface methods by default?
[A] Public Abstract
[B] Private
[C] Protected
[D] Static
सही उत्तर: Public Abstract
व्याख्या: Interface Methods Default रूप से Public और Abstract होती हैं।
Correct Answer: Public Abstract
Explanation: Interface methods are public and abstract by default.
193. Abstract Class क्या है?
[A] Incomplete Class
[B] Database Class
[C] Static Class
[D] Sealed Class
193. What is an Abstract Class?
[A] Incomplete Class
[B] Database Class
[C] Static Class
[D] Sealed Class
सही उत्तर: Incomplete Class
व्याख्या: Abstract Class का Object नहीं बनाया जा सकता।
Correct Answer: Incomplete Class
Explanation: An abstract class cannot be instantiated.
194. Abstract Method किस Class में होती है?
[A] Abstract Class
[B] Static Class
[C] Sealed Class
[D] Normal Class
194. In which class can an abstract method exist?
[A] Abstract Class
[B] Static Class
[C] Sealed Class
[D] Normal Class
सही उत्तर: Abstract Class
व्याख्या: Abstract Method की Implementation Derived Class देती है।
Correct Answer: Abstract Class
Explanation: Derived classes provide implementation.
195. Sealed Class का उपयोग किसलिए किया जाता है?
[A] Inheritance रोकने के लिए
[B] Interface Implement करने के लिए
[C] Database Access
[D] Logging
195. Why is a Sealed Class used?
[A] Prevent Inheritance
[B] Implement Interface
[C] Database Access
[D] Logging
सही उत्तर: Inheritance रोकने के लिए
व्याख्या: Sealed Class को Inherit नहीं किया जा सकता।
Correct Answer: Prevent Inheritance
Explanation: A sealed class cannot be inherited.
196. Static Class की विशेषता क्या है?
[A] Object Create नहीं किया जा सकता
[B] Inheritance आवश्यक है
[C] Database में Store होती है
[D] Runtime पर बनती है
196. What is a characteristic of a Static Class?
[A] Cannot Create Object
[B] Requires Inheritance
[C] Stored in Database
[D] Created at Runtime
सही उत्तर: Object Create नहीं किया जा सकता
व्याख्या: Static Class केवल Static Members रखती है।
Correct Answer: Cannot Create Object
Explanation: A static class contains only static members.
197. Constructor का मुख्य उद्देश्य क्या है?
[A] Object Initialization
[B] Database Connection
[C] Routing
[D] Logging
197. What is the main purpose of a Constructor?
[A] Object Initialization
[B] Database Connection
[C] Routing
[D] Logging
सही उत्तर: Object Initialization
व्याख्या: Constructor Object Create होने पर Execute होता है।
Correct Answer: Object Initialization
Explanation: A constructor executes when an object is created.
198. Destructor का उपयोग किसलिए किया जाता है?
[A] Object Cleanup
[B] Object Creation
[C] Database Insert
[D] Routing
198. What is a Destructor used for?
[A] Object Cleanup
[B] Object Creation
[C] Database Insert
[D] Routing
सही उत्तर: Object Cleanup
व्याख्या: Destructor Resources Release करने में सहायता करता है।
Correct Answer: Object Cleanup
Explanation: A destructor helps release resources.
199. this Keyword का उपयोग किसलिए किया जाता है?
[A] Current Object को Refer करने के लिए
[B] Base Class को Refer करने के लिए
[C] Database को Refer करने के लिए
[D] Interface को Refer करने के लिए
199. What is the purpose of the this keyword?
[A] Refer Current Object
[B] Refer Base Class
[C] Refer Database
[D] Refer Interface
सही उत्तर: Current Object को Refer करने के लिए
व्याख्या: this वर्तमान Object के Instance को Refer करता है।
Correct Answer: Refer Current Object
Explanation: this refers to the current object instance.
200. String Class Immutable क्यों कहलाती है?
[A] Value Change होने पर नया Object बनता है
[B] Value Change नहीं हो सकती
[C] Database में Store होती है
[D] Static होती है
200. Why is String class called immutable?
[A] New object is created when value changes
[B] Value cannot change
[C] Stored in database
[D] It is static
सही उत्तर: Value Change होने पर नया Object बनता है
व्याख्या: String Modify करने पर नया Object Memory में Create होता है।
Correct Answer: New object is created when value changes
Explanation: A new object is created whenever a string is modified.