[C-Sharp Programming MCQS ]

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

[ C-Sharp Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
31. C# में Garbage Collection का कार्य क्या है?
[A] Code Compile करना
[B] अनुपयोगी Memory को मुक्त करना
[C] Array बनाना
[D] Loop चलाना
31. What is the purpose of Garbage Collection in C#?
[A] Compile code
[B] Free unused memory
[C] Create arrays
[D] Execute loops
सही उत्तर: अनुपयोगी Memory को मुक्त करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Free unused memory
Explanation: Important question.
32. C# में String Immutable होती है, इसका क्या अर्थ है?
[A] String को Delete नहीं कर सकते
[B] String को Modify नहीं किया जा सकता
[C] String केवल Number Store करती है
[D] String Static होती है
32. What does it mean that String is immutable in C#?
[A] String cannot be deleted
[B] String cannot be modified
[C] String stores only numbers
[D] String is static
सही उत्तर: String को Modify नहीं किया जा सकता
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: String cannot be modified
Explanation: Important question.
33. C# में Value Type का उदाहरण कौन-सा है?
[A] string
[B] object
[C] int
[D] Array
33. Which is an example of a Value Type in C#?
[A] string
[B] object
[C] int
[D] Array
सही उत्तर: int
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: int
Explanation: Important question.
34. C# में Reference Type का उदाहरण कौन-सा है?
[A] int
[B] double
[C] char
[D] string
34. Which is an example of a Reference Type in C#?
[A] int
[B] double
[C] char
[D] string
सही उत्तर: string
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: string
Explanation: Important question.
35. C# में Boxing क्या है?
[A] Reference Type को Value Type में बदलना
[B] Value Type को Object Type में बदलना
[C] String को Integer में बदलना
[D] Array Copy करना
35. What is Boxing in C#?
[A] Converting Reference Type to Value Type
[B] Converting Value Type to Object Type
[C] Converting String to Integer
[D] Copying an Array
सही उत्तर: Value Type को Object Type में बदलना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Converting Value Type to Object Type
Explanation: Important question.
36. C# में Unboxing क्या है?
[A] Object Type को Value Type में बदलना
[B] Value Type को Object Type में बदलना
[C] Array बनाना
[D] Class बनाना
36. What is Unboxing in C#?
[A] Converting Object Type to Value Type
[B] Converting Value Type to Object Type
[C] Creating an Array
[D] Creating a Class
सही उत्तर: Object Type को Value Type में बदलना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Converting Object Type to Value Type
Explanation: Important question.
37. C# में Access Modifier "private" का अर्थ क्या है?
[A] हर जगह Accessible
[B] केवल उसी Class के अंदर Accessible
[C] केवल Derived Class में Accessible
[D] केवल Namespace में Accessible
37. What does the "private" access modifier mean in C#?
[A] Accessible everywhere
[B] Accessible only within the same class
[C] Accessible only in derived classes
[D] Accessible only within the namespace
सही उत्तर: केवल उसी Class के अंदर Accessible
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Accessible only within the same class
Explanation: Important question.
38. C# में Access Modifier "public" का अर्थ क्या है?
[A] केवल Class के अंदर
[B] केवल Assembly के अंदर
[C] हर जगह Accessible
[D] केवल Derived Class में
38. What does the "public" access modifier mean in C#?
[A] Only inside the class
[B] Only inside the assembly
[C] Accessible everywhere
[D] Only in derived classes
सही उत्तर: हर जगह Accessible
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Accessible everywhere
Explanation: Important question.
39. C# में "static" Keyword का उपयोग किसलिए किया जाता है?
[A] Object बनाने के लिए
[B] Class Member को Shared बनाने के लिए
[C] Loop बनाने के लिए
[D] Exception Handle करने के लिए
39. Why is the "static" keyword used in C#?
[A] To create objects
[B] To make class members shared
[C] To create loops
[D] To handle exceptions
सही उत्तर: Class Member को Shared बनाने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To make class members shared
Explanation: Important question.
40. C# में Property का मुख्य उद्देश्य क्या है?
[A] Method बनाना
[B] Data को सुरक्षित तरीके से Access करना
[C] Loop चलाना
[D] Namespace बनाना
40. What is the main purpose of a Property in C#?
[A] To create methods
[B] To access data safely
[C] To execute loops
[D] To create namespaces
सही उत्तर: Data को सुरक्षित तरीके से Access करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To access data safely
Explanation: Important question.