[ DOT NET Core MCQS ]

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

[ DOT NET Core MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
741. AddControllersWithViews() Method क्या Register करती है?
[A] MVC Controllers और Views
[B] Only Controllers
[C] Only Views
[D] Only APIs
741. What does AddControllersWithViews() register?
[A] MVC Controllers and Views
[B] Only Controllers
[C] Only Views
[D] Only APIs
सही उत्तर: MVC Controllers और Views
व्याख्या: MVC Application के लिए उपयोग होती है।
Correct Answer: MVC Controllers and Views
Explanation: Used in MVC applications.
742. AddRazorPages() Method का उपयोग किसलिए होता है?
[A] Razor Pages Register करने के लिए
[B] Controllers Register करने के लिए
[C] Middleware Register करने के लिए
[D] Services Register करने के लिए
742. What is AddRazorPages() used for?
[A] Register Razor Pages
[B] Register Controllers
[C] Register Middleware
[D] Register Services
सही उत्तर: Razor Pages Register करने के लिए
व्याख्या: Razor Pages Support Enable करती है।
Correct Answer: Register Razor Pages
Explanation: Enables Razor Pages support.
743. app.UseRouting() Middleware का उपयोग किसलिए होता है?
[A] Routing Enable करने के लिए
[B] Authentication के लिए
[C] Authorization के लिए
[D] Logging के लिए
743. What is app.UseRouting() used for?
[A] Enable Routing
[B] Authentication
[C] Authorization
[D] Logging
सही उत्तर: Routing Enable करने के लिए
व्याख्या: Incoming Requests को Routes से Match करती है।
Correct Answer: Enable Routing
Explanation: Matches incoming requests to routes.
744. app.UseAuthentication() Middleware क्या करती है?
[A] User Authentication
[B] User Authorization
[C] User Registration
[D] User Logout
744. What does app.UseAuthentication() do?
[A] User Authentication
[B] User Authorization
[C] User Registration
[D] User Logout
सही उत्तर: User Authentication
व्याख्या: User Identity Verify करती है।
Correct Answer: User Authentication
Explanation: Verifies user identity.
745. app.UseAuthorization() Middleware का उपयोग किसलिए होता है?
[A] Access Control
[B] Authentication
[C] Logging
[D] Caching
745. What is app.UseAuthorization() used for?
[A] Access Control
[B] Authentication
[C] Logging
[D] Caching
सही उत्तर: Access Control
व्याख्या: User Permissions Check करती है।
Correct Answer: Access Control
Explanation: Checks user permissions.
746. MapControllers() Method क्या करती है?
[A] Controller Routes Map करती है
[B] Database Map करती है
[C] Views Map करती है
[D] Services Map करती है
746. What does MapControllers() do?
[A] Maps Controller Routes
[B] Maps Database
[C] Maps Views
[D] Maps Services
सही उत्तर: Controller Routes Map करती है
व्याख्या: Attribute Routing Enable करती है।
Correct Answer: Maps Controller Routes
Explanation: Enables attribute routing.
747. app.MapGet() Method का उपयोग किसलिए होता है?
[A] GET Endpoint Create करने के लिए
[B] POST Endpoint Create करने के लिए
[C] PUT Endpoint Create करने के लिए
[D] DELETE Endpoint Create करने के लिए
747. What is app.MapGet() used for?
[A] Create GET Endpoint
[B] Create POST Endpoint
[C] Create PUT Endpoint
[D] Create DELETE Endpoint
सही उत्तर: GET Endpoint Create करने के लिए
व्याख्या: Minimal API में GET Requests Handle करती है।
Correct Answer: Create GET Endpoint
Explanation: Handles GET requests in Minimal APIs.
748. app.MapPost() Method क्या करती है?
[A] POST Endpoint Create करती है
[B] GET Endpoint Create करती है
[C] DELETE Endpoint Create करती है
[D] PATCH Endpoint Create करती है
748. What does app.MapPost() do?
[A] Creates POST Endpoint
[B] Creates GET Endpoint
[C] Creates DELETE Endpoint
[D] Creates PATCH Endpoint
सही उत्तर: POST Endpoint Create करती है
व्याख्या: Data Submit करने के लिए उपयोग होती है।
Correct Answer: Creates POST Endpoint
Explanation: Used for data submission.
749. AddSwaggerGen() Method का उपयोग किसलिए होता है?
[A] Swagger Services Register करने के लिए
[B] Database Services Register करने के लिए
[C] Identity Services Register करने के लिए
[D] Caching Services Register करने के लिए
749. What is AddSwaggerGen() used for?
[A] Register Swagger Services
[B] Register Database Services
[C] Register Identity Services
[D] Register Caching Services
सही उत्तर: Swagger Services Register करने के लिए
व्याख्या: API Documentation Generate करती है।
Correct Answer: Register Swagger Services
Explanation: Generates API documentation.
750. UseSwagger() Method क्या करती है?
[A] Swagger JSON Generate करती है
[B] Database Generate करती है
[C] Views Generate करती है
[D] Controllers Generate करती है
750. What does UseSwagger() do?
[A] Generates Swagger JSON
[B] Generates Database
[C] Generates Views
[D] Generates Controllers
सही उत्तर: Swagger JSON Generate करती है
व्याख्या: API Metadata Expose करती है।
Correct Answer: Generates Swagger JSON
Explanation: Exposes API metadata.