[ DOT NET Core MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ DOT NET Core MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
201. StringBuilder का मुख्य लाभ क्या है?
[A] Better Performance for String Manipulation
[B] Database Access
[C] Routing
[D] Authentication
201. What is the main advantage of StringBuilder?
[A] Better Performance for String Manipulation
[B] Database Access
[C] Routing
[D] Authentication
सही उत्तर: Better Performance for String Manipulation
व्याख्या: बार-बार String बदलने पर StringBuilder अधिक Efficient होता है।
Correct Answer: Better Performance for String Manipulation
Explanation: StringBuilder is efficient for frequent string modifications.
202. StringBuilder किस Namespace में स्थित है?
[A] System.Text
[B] System.IO
[C] System.Data
[D] System.Web
202. Which namespace contains StringBuilder?
[A] System.Text
[B] System.IO
[C] System.Data
[D] System.Web
सही उत्तर: System.Text
व्याख्या: StringBuilder System.Text Namespace में होता है।
Correct Answer: System.Text
Explanation: StringBuilder belongs to System.Text namespace.
203. Array क्या है?
[A] Same Type Elements का Collection
[B] Database Table
[C] Class
[D] Interface
203. What is an Array?
[A] Collection of Same Type Elements
[B] Database Table
[C] Class
[D] Interface
सही उत्तर: Same Type Elements का Collection
व्याख्या: Array Fixed Size Collection होती है।
Correct Answer: Collection of Same Type Elements
Explanation: An array is a fixed-size collection.
204. Array का Index किससे शुरू होता है?
[A] 0
[B] 1
[C] -1
[D] 10
204. From which index does an array start?
[A] 0
[B] 1
[C] -1
[D] 10
सही उत्तर: 0
व्याख्या: C# Arrays Zero-Based Indexing का उपयोग करती हैं।
Correct Answer: 0
Explanation: C# arrays use zero-based indexing.
205. IndexOutOfRangeException कब आती है?
[A] Invalid Array Index Access करने पर
[B] Database Error पर
[C] Login Error पर
[D] Routing Error पर
205. When does IndexOutOfRangeException occur?
[A] When accessing an invalid array index
[B] Database Error
[C] Login Error
[D] Routing Error
सही उत्तर: Invalid Array Index Access करने पर
व्याख्या: Array की सीमा से बाहर Index Access करने पर Exception आती है।
Correct Answer: When accessing an invalid array index
Explanation: Occurs when accessing an index outside array bounds.
206. NullReferenceException कब आती है?
[A] Null Object Access करने पर
[B] Database Error पर
[C] Compile Error पर
[D] Routing Error पर
206. When does NullReferenceException occur?
[A] When accessing a null object
[B] Database Error
[C] Compile Error
[D] Routing Error
सही उत्तर: Null Object Access करने पर
व्याख्या: Null Reference पर Method/Property Access करने पर Exception आती है।
Correct Answer: When accessing a null object
Explanation: Occurs when accessing a member on a null reference.
207. DivideByZeroException कब आती है?
[A] 0 से Divide करने पर
[B] Null Value पर
[C] String Value पर
[D] Array Value पर
207. When does DivideByZeroException occur?
[A] When dividing by zero
[B] On null value
[C] On string value
[D] On array value
सही उत्तर: 0 से Divide करने पर
व्याख्या: Zero से Division करने पर यह Exception आती है।
Correct Answer: When dividing by zero
Explanation: Occurs when attempting division by zero.
208. Nullable Type किस Symbol से बनाई जाती है?
[A] ?
[B] !
[C] #
[D] @
208. Which symbol is used for Nullable Types?
[A] ?
[B] !
[C] #
[D] @
सही उत्तर: ?
व्याख्या: Nullable Type Value Types को Null रखने की अनुमति देती है।
Correct Answer: ?
Explanation: Nullable types allow value types to hold null.
209. int? किसका उदाहरण है?
[A] Nullable Integer
[B] Array
[C] Reference Type
[D] Interface
209. What is int? an example of?
[A] Nullable Integer
[B] Array
[C] Reference Type
[D] Interface
सही उत्तर: Nullable Integer
व्याख्या: int? एक Nullable Integer Type है।
Correct Answer: Nullable Integer
Explanation: int? is a nullable integer type.
210. Boxing क्या है?
[A] Value Type को Object में Convert करना
[B] Object को Value Type में Convert करना
[C] String को Integer में Convert करना
[D] Array को List में Convert करना
210. What is Boxing?
[A] Converting Value Type to Object
[B] Converting Object to Value Type
[C] String to Integer
[D] Array to List
सही उत्तर: Value Type को Object में Convert करना
व्याख्या: Boxing में Value Type Heap Memory में Store होती है।
Correct Answer: Converting Value Type to Object
Explanation: Boxing stores value types as objects on the heap.