[C-Sharp Programming MCQS ]

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

[ C-Sharp Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
271. Dispose() Method का मुख्य उद्देश्य क्या है?
[A] Managed Resources Release करना
[B] Unmanaged Resources Release करना
[C] Garbage Collection रोकना
[D] Class Delete करना
271. What is the primary purpose of the Dispose() method?
[A] Release managed resources
[B] Release unmanaged resources
[C] Stop garbage collection
[D] Delete a class
सही उत्तर: Unmanaged Resources Release करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Release unmanaged resources
Explanation: Important question.
272. Finalize() Method कब Execute होती है?
[A] Program Start पर
[B] Object Create होते समय
[C] Garbage Collector द्वारा Object Collect करने से पहले
[D] Method Call के तुरंत बाद
272. When is the Finalize() method executed?
[A] At program start
[B] When an object is created
[C] Before the Garbage Collector collects the object
[D] Immediately after a method call
सही उत्तर: Garbage Collector द्वारा Object Collect करने से पहले
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Before the Garbage Collector collects the object
Explanation: Important question.
273. GC.SuppressFinalize() Method का उपयोग किसलिए किया जाता है?
[A] Garbage Collector Disable करने के लिए
[B] Finalize() Call को Skip करने के लिए
[C] Memory Allocate करने के लिए
[D] Thread Stop करने के लिए
273. Why is GC.SuppressFinalize() used?
[A] To disable the Garbage Collector
[B] To skip the Finalize() call
[C] To allocate memory
[D] To stop threads
सही उत्तर: Finalize() Call को Skip करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To skip the Finalize() call
Explanation: Important question.
274. GC.Collect() Method क्या करती है?
[A] Database Collect करती है
[B] Garbage Collection Force करती है
[C] Memory Allocate करती है
[D] Thread Create करती है
274. What does the GC.Collect() method do?
[A] Collect databases
[B] Force garbage collection
[C] Allocate memory
[D] Create threads
सही उत्तर: Garbage Collection Force करती है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Force garbage collection
Explanation: Important question.
275. WeakReference का मुख्य लाभ क्या है?
[A] Object को हमेशा Memory में रखना
[B] Object को Garbage Collection के लिए Eligible रहने देना
[C] Memory Leak बढ़ाना
[D] Thread Synchronization करना
275. What is the main advantage of WeakReference?
[A] Keep the object permanently in memory
[B] Allow the object to remain eligible for garbage collection
[C] Increase memory leaks
[D] Perform thread synchronization
सही उत्तर: Object को Garbage Collection के लिए Eligible रहने देना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Allow the object to remain eligible for garbage collection
Explanation: Important question.
276. Memory Leak सामान्यतः कब होता है?
[A] जब सभी Objects Release हो जाएँ
[B] जब Unused Resources Release नहीं होते
[C] जब Program Compile होता है
[D] जब Exception Handle होती है
276. When does a memory leak generally occur?
[A] When all objects are released
[B] When unused resources are not released
[C] When the program is compiled
[D] When an exception is handled
सही उत्तर: जब Unused Resources Release नहीं होते
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: When unused resources are not released
Explanation: Important question.
277. Object Pooling का मुख्य उद्देश्य क्या है?
[A] हर बार नया Object Create करना
[B] Existing Objects को Reuse करके Performance Improve करना
[C] Garbage Collector Disable करना
[D] Database Connection बंद करना
277. What is the primary purpose of Object Pooling?
[A] Create a new object every time
[B] Re-use existing objects to improve performance
[C] Disable the Garbage Collector
[D] Close database connections
सही उत्तर: Existing Objects को Reuse करके Performance Improve करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Re-use existing objects to improve performance
Explanation: Important question.
278. ASP.NET Core में IHttpClientFactory का मुख्य उद्देश्य क्या है?
[A] Database Connection बनाना
[B] HttpClient Instances को Efficient तरीके से Manage करना
[C] JSON Parse करना
[D] Memory Allocate करना
278. What is the primary purpose of IHttpClientFactory in ASP.NET Core?
[A] Create database connections
[B] Manage HttpClient instances efficiently
[C] Parse JSON
[D] Allocate memory
सही उत्तर: HttpClient Instances को Efficient तरीके से Manage करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Manage HttpClient instances efficiently
Explanation: Important question.
279. DelegatingHandler का उपयोग मुख्य रूप से किसलिए किया जाता है?
[A] Database Migration
[B] HTTP Request एवं Response Pipeline को Customize करने के लिए
[C] View Render करने के लिए
[D] Garbage Collection के लिए
279. Why is DelegatingHandler primarily used?
[A] Database migration
[B] Customize the HTTP request and response pipeline
[C] Render views
[D] Garbage collection
सही उत्तर: HTTP Request एवं Response Pipeline को Customize करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Customize the HTTP request and response pipeline
Explanation: Important question.
280. ASP.NET Core Middleware Pipeline में Request किस क्रम में Execute होती है?
[A] Random Order
[B] Registration Order
[C] Alphabetical Order
[D] Priority Order
280. In which order are requests executed in the ASP.NET Core middleware pipeline?
[A] Random order
[B] Registration order
[C] Alphabetical order
[D] Priority order
सही उत्तर: Registration Order
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Registration order
Explanation: Important question.