[C-Sharp Programming MCQS ]

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

[ C-Sharp Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
371. ref return का उपयोग किसलिए होता है?
[A] Value return करने के लिए
[B] Reference return करने के लिए
[C] Thread return करने के लिए
[D] File return करने के लिए
371. What is ref return used for?
[A] Return value
[B] Return reference
[C] Return thread
[D] Return file
सही उत्तर: Reference return करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Return reference
Explanation: Important question.
372. Stack memory का मुख्य उपयोग क्या है?
[A] Large objects storage
[B] Static memory allocation for local variables
[C] Database storage
[D] File storage
372. What is the main use of stack memory?
[A] Large objects storage
[B] Store local variables
[C] Database storage
[D] File storage
सही उत्तर: Static memory allocation for local variables
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Store local variables
Explanation: Important question.
373. Heap memory का उपयोग किसलिए होता है?
[A] Temporary variables
[B] Dynamic object allocation
[C] Thread stack
[D] CPU cache
373. What is heap memory used for?
[A] Temporary variables
[B] Dynamic object allocation
[C] Thread stack
[D] CPU cache
सही उत्तर: Dynamic object allocation
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Dynamic object allocation
Explanation: Important question.
374. Garbage Collector कब run होता है?
[A] Manually only
[B] Automatically by CLR
[C] Only on exception
[D] Only on compile time
374. When does Garbage Collector run?
[A] Manually only
[B] Automatically by CLR
[C] Only on exception
[D] Only at compile time
सही उत्तर: Automatically by CLR
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Automatically by CLR
Explanation: Important question.
375. LOH (Large Object Heap) कब use होता है?
[A] Small objects के लिए
[B] Large objects (>85KB)
[C] Strings only
[D] Threads के लिए
375. When is LOH (Large Object Heap) used?
[A] Small objects
[B] Large objects (>85KB)
[C] Strings only
[D] Threads
सही उत्तर: Large objects (>85KB)
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Large objects (>85KB)
Explanation: Important question.
376. IDisposable interface का मुख्य उद्देश्य क्या है?
[A] Memory increase करना
[B] Unmanaged resources release करना
[C] Thread create करना
[D] Database connect करना
376. What is the main purpose of IDisposable?
[A] Increase memory
[B] Release unmanaged resources
[C] Create thread
[D] Connect database
सही उत्तर: Unmanaged resources release करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Release unmanaged resources
Explanation: Important question.
377. C# में finalizer (~Destructor) का मुख्य उद्देश्य क्या है?
[A] Managed memory बढ़ाना
[B] Unmanaged resources cleanup करना
[C] Thread create करना
[D] Database connect करना
377. What is the main purpose of finalizer (~Destructor) in C#?
[A] Increase managed memory
[B] Cleanup unmanaged resources
[C] Create thread
[D] Connect database
सही उत्तर: Unmanaged resources cleanup करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Cleanup unmanaged resources
Explanation: Important question.
378. Finalize method कब call होता है?
[A] Manually
[B] Garbage Collector द्वारा
[C] Compile time पर
[D] Object creation पर
378. When is the Finalize method called?
[A] Manually
[B] By Garbage Collector
[C] At compile time
[D] On object creation
सही उत्तर: Garbage Collector द्वारा
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: By Garbage Collector
Explanation: Important question.
379. Dispose और Finalize में मुख्य अंतर क्या है?
[A] दोनों same हैं
[B] Dispose manually call होता है, Finalize GC द्वारा
[C] Finalize fast होता है
[D] Dispose unmanaged memory delete करता है
379. What is the main difference between Dispose and Finalize?
[A] Both are same
[B] Dispose is manual, Finalize is GC driven
[C] Finalize is faster
[D] Dispose deletes only managed memory
सही उत्तर: Dispose manually call होता है, Finalize GC द्वारा
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Dispose is manual, Finalize is GC driven
Explanation: Important question.
380. GC.Collect() का उपयोग क्या करता है?
[A] Force garbage collection
[B] Thread create करता है
[C] File delete करता है
[D] Database update करता है
380. What does GC.Collect() do?
[A] Force garbage collection
[B] Create thread
[C] Delete file
[D] Update database
सही उत्तर: Force garbage collection
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Force garbage collection
Explanation: Important question.