[C-Sharp Programming MCQS ]

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

[ C-Sharp Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
151. ASP.NET Core में Middleware क्या है?
[A] Database Table
[B] HTTP Request Pipeline का Component
[C] CLR Service
[D] SQL Object
151. What is Middleware in ASP.NET Core?
[A] Database Table
[B] A component of the HTTP request pipeline
[C] CLR Service
[D] SQL Object
सही उत्तर: HTTP Request Pipeline का Component
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: A component of the HTTP request pipeline
Explanation: Important question.
152. ASP.NET Core में appsettings.json का उपयोग किसलिए किया जाता है?
[A] CSS लिखने के लिए
[B] Application Configuration Store करने के लिए
[C] SQL Query लिखने के लिए
[D] Image Store करने के लिए
152. Why is appsettings.json used in ASP.NET Core?
[A] To write CSS
[B] To store application configuration
[C] To write SQL queries
[D] To store images
सही उत्तर: Application Configuration Store करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To store application configuration
Explanation: Important question.
153. ASP.NET Core में IConfiguration Interface का उपयोग किसलिए किया जाता है?
[A] Logging के लिए
[B] Configuration Values पढ़ने के लिए
[C] Authentication के लिए
[D] Routing के लिए
153. Why is IConfiguration interface used in ASP.NET Core?
[A] For logging
[B] To read configuration values
[C] For authentication
[D] For routing
सही उत्तर: Configuration Values पढ़ने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To read configuration values
Explanation: Important question.
154. ASP.NET Core में ILogger Interface का उपयोग किसलिए किया जाता है?
[A] Database Access
[B] Application Logging
[C] File Compression
[D] Session Management
154. What is ILogger interface used for in ASP.NET Core?
[A] Database Access
[B] Application Logging
[C] File Compression
[D] Session Management
सही उत्तर: Application Logging
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Application Logging
Explanation: Important question.
155. ASP.NET Core में Built-in Dependency Injection Container किस Method में Configure किया जाता है?
[A] Configure()
[B] ConfigureServices()
[C] Run()
[D] Build()
155. In which method is the built-in Dependency Injection container configured in ASP.NET Core?
[A] Configure()
[B] ConfigureServices()
[C] Run()
[D] Build()
सही उत्तर: ConfigureServices()
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: ConfigureServices()
Explanation: Important question.
156. ASP.NET Core MVC में Controller किससे Inherit करता है?
[A] Object
[B] Controller
[C] DbContext
[D] Program
156. In ASP.NET Core MVC, Controller inherits from?
[A] Object
[B] Controller
[C] DbContext
[D] Program
सही उत्तर: Controller
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Controller
Explanation: Important question.
157. ASP.NET Core Web API में JSON Response सामान्यतः किसके द्वारा Return होता है?
[A] ViewResult
[B] JsonResult
[C] ContentResult
[D] FileResult
157. Which result type commonly returns JSON response in ASP.NET Core Web API?
[A] ViewResult
[B] JsonResult
[C] ContentResult
[D] FileResult
सही उत्तर: JsonResult
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: JsonResult
Explanation: Important question.
158. ASP.NET Core में Routing का मुख्य उद्देश्य क्या है?
[A] Memory Allocation
[B] URL को Action Method से Map करना
[C] Database Connection
[D] File Upload
158. What is the main purpose of Routing in ASP.NET Core?
[A] Memory allocation
[B] Map URLs to action methods
[C] Database connection
[D] File upload
सही उत्तर: URL को Action Method से Map करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Map URLs to action methods
Explanation: Important question.
159. ASP.NET Core में IActionResult का मुख्य लाभ क्या है?
[A] केवल View Return करना
[B] विभिन्न प्रकार के Response Return करना
[C] केवल JSON Return करना
[D] केवल File Return करना
159. What is the main advantage of IActionResult in ASP.NET Core?
[A] Return only views
[B] Return different types of responses
[C] Return only JSON
[D] Return only files
सही उत्तर: विभिन्न प्रकार के Response Return करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Return different types of responses
Explanation: Important question.
160. ASP.NET Core में REST API के लिए सबसे उपयुक्त Controller Base Class कौन-सी है?
[A] Controller
[B] ControllerBase
[C] DbContext
[D] PageModel
160. Which base class is most suitable for REST APIs in ASP.NET Core?
[A] Controller
[B] ControllerBase
[C] DbContext
[D] PageModel
सही उत्तर: ControllerBase
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: ControllerBase
Explanation: Important question.