[C-Sharp Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ C-Sharp Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
181. ASP.NET Core में BackgroundService का मुख्य उद्देश्य क्या है?
[A] UI बनाना
[B] Background में Long Running Task चलाना
[C] Database Delete करना
[D] View Render करना
181. What is the primary purpose of BackgroundService in ASP.NET Core?
[A] Create UI
[B] Run long-running background tasks
[C] Delete database
[D] Render views
सही उत्तर: Background में Long Running Task चलाना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Run long-running background tasks
Explanation: Important question.
182. IHostedService Interface का उपयोग किसलिए किया जाता है?
[A] Database Migration
[B] Background Services Implement करने के लिए
[C] Authentication के लिए
[D] Caching के लिए
182. Why is IHostedService used in ASP.NET Core?
[A] For database migration
[B] To implement background services
[C] For authentication
[D] For caching
सही उत्तर: Background Services Implement करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To implement background services
Explanation: Important question.
183. Options Pattern का मुख्य उद्देश्य क्या है?
[A] Configuration Settings को Strongly Typed Objects में Bind करना
[B] Database Connection बनाना
[C] Exception Handle करना
[D] Routing Configure करना
183. What is the main purpose of the Options Pattern?
[A] Bind configuration settings to strongly typed objects
[B] Create database connections
[C] Handle exceptions
[D] Configure routing
सही उत्तर: Configuration Settings को Strongly Typed Objects में Bind करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Bind configuration settings to strongly typed objects
Explanation: Important question.
184. ASP.NET Core में IConfiguration.Bind() Method का उपयोग किसलिए किया जाता है?
[A] File Delete करने के लिए
[B] Configuration Values को Object में Map करने के लिए
[C] View Render करने के लिए
[D] Logging करने के लिए
184. Why is IConfiguration.Bind() used in ASP.NET Core?
[A] To delete files
[B] To map configuration values to an object
[C] To render views
[D] For logging
सही उत्तर: Configuration Values को Object में Map करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To map configuration values to an object
Explanation: Important question.
185. Swagger/OpenAPI का मुख्य उद्देश्य क्या है?
[A] Database Design
[B] API Documentation और Testing
[C] Image Processing
[D] File Compression
185. What is the primary purpose of Swagger/OpenAPI?
[A] Database design
[B] API documentation and testing
[C] Image processing
[D] File compression
सही उत्तर: API Documentation और Testing
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: API documentation and testing
Explanation: Important question.
186. API Versioning का मुख्य लाभ क्या है?
[A] Memory कम करना
[B] पुराने Clients को प्रभावित किए बिना API Update करना
[C] Database Speed बढ़ाना
[D] File Size कम करना
186. What is the main benefit of API Versioning?
[A] Reduce memory
[B] Update APIs without affecting existing clients
[C] Increase database speed
[D] Reduce file size
सही उत्तर: पुराने Clients को प्रभावित किए बिना API Update करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Update APIs without affecting existing clients
Explanation: Important question.
187. Health Checks का उपयोग किसलिए किया जाता है?
[A] Database Backup
[B] Application और Dependencies की स्थिति जांचने के लिए
[C] Authentication के लिए
[D] Routing के लिए
187. Why are Health Checks used in ASP.NET Core?
[A] For database backup
[B] To monitor application and dependency health
[C] For authentication
[D] For routing
सही उत्तर: Application और Dependencies की स्थिति जांचने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To monitor application and dependency health
Explanation: Important question.
188. gRPC किस प्रकार का Communication Framework है?
[A] Text File Framework
[B] High Performance Remote Procedure Call Framework
[C] Database Framework
[D] Logging Framework
188. What type of framework is gRPC?
[A] Text file framework
[B] High-performance remote procedure call framework
[C] Database framework
[D] Logging framework
सही उत्तर: High Performance Remote Procedure Call Framework
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: High-performance remote procedure call framework
Explanation: Important question.
189. Minimal API पहली बार किस .NET Version में Introduce की गई?
[A] .NET Core 2.1
[B] .NET 5
[C] .NET 6
[D] .NET Framework 4.8
189. In which .NET version was Minimal API introduced?
[A] .NET Core 2.1
[B] .NET 5
[C] .NET 6
[D] .NET Framework 4.8
सही उत्तर: .NET 6
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: .NET 6
Explanation: Important question.
190. Rate Limiting का मुख्य उद्देश्य क्या है?
[A] Database Connection बढ़ाना
[B] API Requests की संख्या नियंत्रित करना
[C] Memory बढ़ाना
[D] Session Delete करना
190. What is the main purpose of Rate Limiting?
[A] Increase database connections
[B] Control the number of API requests
[C] Increase memory
[D] Delete sessions
सही उत्तर: API Requests की संख्या नियंत्रित करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Control the number of API requests
Explanation: Important question.