[ DOT NET Core MCQS ]

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

[ DOT NET Core MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
601. AddCors() Method का उपयोग किसलिए होता है?
[A] CORS Services Register करने के लिए
[B] Authentication Register करने के लिए
[C] Database Register करने के लिए
[D] Session Register करने के लिए
601. What is AddCors() used for?
[A] Register CORS Services
[B] Register Authentication
[C] Register Database
[D] Register Session
सही उत्तर: CORS Services Register करने के लिए
व्याख्या: Cross-Origin Requests Configure करने के लिए।
Correct Answer: Register CORS Services
Explanation: Used to configure cross-origin requests.
602. UseCors() Method क्या करती है?
[A] CORS Policy Apply करती है
[B] Database Policy Apply करती है
[C] Session Policy Apply करती है
[D] Cache Policy Apply करती है
602. What does UseCors() do?
[A] Applies CORS Policy
[B] Applies Database Policy
[C] Applies Session Policy
[D] Applies Cache Policy
सही उत्तर: CORS Policy Apply करती है
व्याख्या: Configured CORS Rules लागू करती है।
Correct Answer: Applies CORS Policy
Explanation: Applies configured CORS rules.
603. UseExceptionHandler() Middleware का उपयोग किसलिए होता है?
[A] Global Exception Handling
[B] Database Backup
[C] Session Storage
[D] Routing
603. What is UseExceptionHandler() used for?
[A] Global Exception Handling
[B] Database Backup
[C] Session Storage
[D] Routing
सही उत्तर: Global Exception Handling
व्याख्या: Application Errors को Centrally Handle करती है।
Correct Answer: Global Exception Handling
Explanation: Handles application errors centrally.
604. DeveloperExceptionPage Middleware का उपयोग कब किया जाता है?
[A] Development Environment में
[B] Production Environment में
[C] Database Migration में
[D] Caching में
604. When is DeveloperExceptionPage used?
[A] In Development Environment
[B] In Production Environment
[C] During Database Migration
[D] In Caching
सही उत्तर: Development Environment में
व्याख्या: Detailed Error Information दिखाती है।
Correct Answer: In Development Environment
Explanation: Displays detailed error information.
605. AddHealthChecks() Method क्या करती है?
[A] Health Check Services Register करती है
[B] Authentication Register करती है
[C] Session Register करती है
[D] Database Delete करती है
605. What does AddHealthChecks() do?
[A] Registers Health Check Services
[B] Registers Authentication
[C] Registers Session
[D] Deletes Database
सही उत्तर: Health Check Services Register करती है
व्याख्या: Application Monitoring के लिए उपयोगी है।
Correct Answer: Registers Health Check Services
Explanation: Useful for application monitoring.
606. MapHealthChecks() Method का उपयोग किसलिए होता है?
[A] Health Check Endpoint Create करने के लिए
[B] API Endpoint Delete करने के लिए
[C] Database Endpoint Create करने के लिए
[D] Session Endpoint Create करने के लिए
606. What is MapHealthChecks() used for?
[A] Create Health Check Endpoint
[B] Delete API Endpoint
[C] Create Database Endpoint
[D] Create Session Endpoint
सही उत्तर: Health Check Endpoint Create करने के लिए
व्याख्या: Application Status Check करने के लिए Endpoint प्रदान करती है।
Correct Answer: Create Health Check Endpoint
Explanation: Provides endpoint for application status checks.
607. RequireAuthorization() Method का उपयोग किसलिए होता है?
[A] Endpoint पर Authorization लागू करने के लिए
[B] Database Access देने के लिए
[C] Session Enable करने के लिए
[D] Logging Enable करने के लिए
607. What is RequireAuthorization() used for?
[A] Apply Authorization to Endpoint
[B] Provide Database Access
[C] Enable Session
[D] Enable Logging
सही उत्तर: Endpoint पर Authorization लागू करने के लिए
व्याख्या: Minimal APIs और Endpoints में Authorization लागू करती है।
Correct Answer: Apply Authorization to Endpoint
Explanation: Applies authorization to endpoints and minimal APIs.
608. NuGet क्या है?
[A] .NET Package Manager
[B] Database Manager
[C] Code Editor
[D] Web Server
608. What is NuGet?
[A] .NET Package Manager
[B] Database Manager
[C] Code Editor
[D] Web Server
सही उत्तर: .NET Package Manager
व्याख्या: NuGet .NET Libraries और Packages को Manage करने के लिए उपयोग किया जाता है।
Correct Answer: .NET Package Manager
Explanation: NuGet is used to manage .NET libraries and packages.
609. NuGet Package Manager का मुख्य उद्देश्य क्या है?
[A] Libraries Manage करना
[B] Database Create करना
[C] Routing करना
[D] Logging करना
609. What is the primary purpose of NuGet Package Manager?
[A] Manage Libraries
[B] Create Database
[C] Perform Routing
[D] Logging
सही उत्तर: Libraries Manage करना
व्याख्या: Dependencies को Install और Update करने के लिए।
Correct Answer: Manage Libraries
Explanation: Used to install and update dependencies.
610. Visual Studio में NuGet Package Manager कहाँ उपलब्ध होता है?
[A] Tools Menu
[B] View Menu
[C] Project Menu
[D] Debug Menu
610. Where is NuGet Package Manager available in Visual Studio?
[A] Tools Menu
[B] View Menu
[C] Project Menu
[D] Debug Menu
सही उत्तर: Tools Menu
व्याख्या: Tools → NuGet Package Manager से Access किया जा सकता है।
Correct Answer: Tools Menu
Explanation: Accessible from Tools → NuGet Package Manager.