[C-Sharp Programming MCQS ]

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

[ C-Sharp Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
121. SOLID का "S" किस Principle को दर्शाता है?
[A] Single Responsibility Principle
[B] Simple Responsibility Principle
[C] System Responsibility Principle
[D] Static Responsibility Principle
121. What does the "S" in SOLID stand for?
[A] Single Responsibility Principle
[B] Simple Responsibility Principle
[C] System Responsibility Principle
[D] Static Responsibility Principle
सही उत्तर: Single Responsibility Principle
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Single Responsibility Principle
Explanation: Important question.
122. SOLID का "O" किस Principle को दर्शाता है?
[A] Object Principle
[B] Open/Closed Principle
[C] Operator Principle
[D] Overload Principle
122. What does the "O" in SOLID stand for?
[A] Object Principle
[B] Open/Closed Principle
[C] Operator Principle
[D] Overload Principle
सही उत्तर: Open/Closed Principle
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Open/Closed Principle
Explanation: Important question.
123. Dependency Injection का मुख्य उद्देश्य क्या है?
[A] Code Coupling बढ़ाना
[B] Loose Coupling प्राप्त करना
[C] Memory बढ़ाना
[D] Database Create करना
123. What is the main purpose of Dependency Injection?
[A] Increase code coupling
[B] Achieve loose coupling
[C] Increase memory usage
[D] Create databases
सही उत्तर: Loose Coupling प्राप्त करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Achieve loose coupling
Explanation: Important question.
124. Constructor Injection किसका प्रकार है?
[A] Dependency Injection
[B] Method Overloading
[C] Exception Handling
[D] Garbage Collection
124. Constructor Injection is a type of?
[A] Dependency Injection
[B] Method Overloading
[C] Exception Handling
[D] Garbage Collection
सही उत्तर: Dependency Injection
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Dependency Injection
Explanation: Important question.
125. Singleton Design Pattern का उद्देश्य क्या है?
[A] एक Class के अनेक Object बनाना
[B] केवल एक Instance बनाना
[C] Memory Delete करना
[D] Multiple Inheritance देना
125. What is the purpose of the Singleton Design Pattern?
[A] Create multiple objects of a class
[B] Create only one instance
[C] Delete memory
[D] Provide multiple inheritance
सही उत्तर: केवल एक Instance बनाना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Create only one instance
Explanation: Important question.
126. Factory Pattern का मुख्य उद्देश्य क्या है?
[A] Loop बनाना
[B] Object Creation को सरल बनाना
[C] File पढ़ना
[D] Database Delete करना
126. What is the main purpose of the Factory Pattern?
[A] Create loops
[B] Simplify object creation
[C] Read files
[D] Delete databases
सही उत्तर: Object Creation को सरल बनाना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Simplify object creation
Explanation: Important question.
127. Repository Pattern मुख्य रूप से किस Layer में उपयोग किया जाता है?
[A] Data Access Layer
[B] Presentation Layer
[C] UI Layer
[D] Network Layer
127. Repository Pattern is mainly used in which layer?
[A] Data Access Layer
[B] Presentation Layer
[C] UI Layer
[D] Network Layer
सही उत्तर: Data Access Layer
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Data Access Layer
Explanation: Important question.
128. using Statement का मुख्य लाभ क्या है?
[A] Automatic Resource Disposal
[B] Fast Compilation
[C] Memory Increase
[D] Loop Optimization
128. What is the main benefit of the using statement in C#?
[A] Automatic resource disposal
[B] Fast compilation
[C] Increase memory
[D] Loop optimization
सही उत्तर: Automatic Resource Disposal
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Automatic resource disposal
Explanation: Important question.
129. WeakReference का उपयोग किसलिए किया जाता है?
[A] Strong Reference बनाने के लिए
[B] Garbage Collector को Object Collect करने की अनुमति देने के लिए
[C] Database Connection के लिए
[D] File Handling के लिए
129. Why is WeakReference used in C#?
[A] To create a strong reference
[B] To allow the Garbage Collector to collect the object
[C] For database connections
[D] For file handling
सही उत्तर: Garbage Collector को Object Collect करने की अनुमति देने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To allow the Garbage Collector to collect the object
Explanation: Important question.
130. Finalizer का मुख्य उद्देश्य क्या है?
[A] Constructor Call करना
[B] Unmanaged Resources को साफ करना
[C] Loop Execute करना
[D] Method Override करना
130. What is the main purpose of a Finalizer in C#?
[A] Call constructor
[B] Clean up unmanaged resources
[C] Execute loops
[D] Override methods
सही उत्तर: Unmanaged Resources को साफ करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Clean up unmanaged resources
Explanation: Important question.