[ DOT NET Core MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ DOT NET Core MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
101. xUnit में Test Method के लिए कौन सा Attribute उपयोग किया जाता है?
[A] [Fact]
[B] [Test]
[C] [Method]
[D] [Run]
101. Which attribute is used for a test method in xUnit?
[A] [Fact]
[B] [Test]
[C] [Method]
[D] [Run]
सही उत्तर: [Fact]
व्याख्या: [Fact] xUnit में Test Method को Define करता है।
Correct Answer: [Fact]
Explanation: [Fact] is used to define a test method in xUnit.
102. xUnit में Parameterized Testing के लिए कौन सा Attribute उपयोग होता है?
[A] [Theory]
[B] [Fact]
[C] [Test]
[D] [Inline]
102. Which attribute is used for parameterized testing in xUnit?
[A] [Theory]
[B] [Fact]
[C] [Test]
[D] [Inline]
सही उत्तर: [Theory]
व्याख्या: [Theory] Parameterized Tests के लिए उपयोग किया जाता है।
Correct Answer: [Theory]
Explanation: [Theory] is used for parameterized tests.
103. Moq Framework का उपयोग किसलिए किया जाता है?
[A] Mock Objects बनाने के लिए
[B] Database बनाने के लिए
[C] UI Design के लिए
[D] Routing के लिए
103. What is Moq used for?
[A] Creating Mock Objects
[B] Creating Database
[C] UI Design
[D] Routing
सही उत्तर: Mock Objects बनाने के लिए
व्याख्या: Moq Unit Testing में Dependencies Mock करने के लिए उपयोग होता है।
Correct Answer: Creating Mock Objects
Explanation: Moq is used to mock dependencies in unit testing.
104. SOLID Principles में S का अर्थ क्या है?
[A] Single Responsibility Principle
[B] Simple Rule
[C] System Rule
[D] Service Rule
104. What does S stand for in SOLID?
[A] Single Responsibility Principle
[B] Simple Rule
[C] System Rule
[D] Service Rule
सही उत्तर: Single Responsibility Principle
व्याख्या: एक Class की केवल एक Responsibility होनी चाहिए।
Correct Answer: Single Responsibility Principle
Explanation: A class should have only one responsibility.
105. SOLID Principles में O का अर्थ क्या है?
[A] Open Closed Principle
[B] Object Class Principle
[C] Open Class Principle
[D] Object Closed Principle
105. What does O stand for in SOLID?
[A] Open Closed Principle
[B] Object Class Principle
[C] Open Class Principle
[D] Object Closed Principle
सही उत्तर: Open Closed Principle
व्याख्या: Software Open for Extension और Closed for Modification होना चाहिए।
Correct Answer: Open Closed Principle
Explanation: Software should be open for extension and closed for modification.
106. SOLID Principles में L का अर्थ क्या है?
[A] Liskov Substitution Principle
[B] Local Service Principle
[C] Logic Separation Principle
[D] Language Standard Principle
106. What does L stand for in SOLID?
[A] Liskov Substitution Principle
[B] Local Service Principle
[C] Logic Separation Principle
[D] Language Standard Principle
सही उत्तर: Liskov Substitution Principle
व्याख्या: Derived Class को Base Class की जगह उपयोग किया जा सके।
Correct Answer: Liskov Substitution Principle
Explanation: Derived classes should be substitutable for base classes.
107. SOLID Principles में I का अर्थ क्या है?
[A] Interface Segregation Principle
[B] Interface Service Principle
[C] Implementation Principle
[D] Integration Principle
107. What does I stand for in SOLID?
[A] Interface Segregation Principle
[B] Interface Service Principle
[C] Implementation Principle
[D] Integration Principle
सही उत्तर: Interface Segregation Principle
व्याख्या: Clients को ऐसे Interfaces पर Depend नहीं करना चाहिए जिनकी उन्हें आवश्यकता नहीं है।
Correct Answer: Interface Segregation Principle
Explanation: Clients should not depend on interfaces they do not use.
108. SOLID Principles में D का अर्थ क्या है?
[A] Dependency Inversion Principle
[B] Dependency Injection Principle
[C] Database Integration Principle
[D] Development Principle
108. What does D stand for in SOLID?
[A] Dependency Inversion Principle
[B] Dependency Injection Principle
[C] Database Integration Principle
[D] Development Principle
सही उत्तर: Dependency Inversion Principle
व्याख्या: High Level Modules Low Level Modules पर Depend नहीं करने चाहिए।
Correct Answer: Dependency Inversion Principle
Explanation: High level modules should not depend on low level modules.
109. Repository Pattern का मुख्य उद्देश्य क्या है?
[A] Data Access Layer को Abstract करना
[B] UI बनाना
[C] API बनाना
[D] Routing करना
109. What is the main purpose of Repository Pattern?
[A] Abstract Data Access Layer
[B] Create UI
[C] Create API
[D] Routing
सही उत्तर: Data Access Layer को Abstract करना
व्याख्या: Repository Pattern Data Access Logic को अलग करता है।
Correct Answer: Abstract Data Access Layer
Explanation: Repository pattern separates data access logic.
110. Unit of Work Pattern का उद्देश्य क्या है?
[A] Multiple Operations को एक Transaction में Manage करना
[B] UI Design
[C] Authentication
[D] Caching
110. What is the purpose of Unit of Work Pattern?
[A] Manage Multiple Operations in One Transaction
[B] UI Design
[C] Authentication
[D] Caching
सही उत्तर: Multiple Operations को एक Transaction में Manage करना
व्याख्या: Unit of Work कई Database Operations को एक Unit की तरह Manage करता है।
Correct Answer: Manage Multiple Operations in One Transaction
Explanation: Unit of Work manages multiple database operations as a single transaction.