[ DOT NET Core MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ DOT NET Core MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
211. Unboxing क्या है?
[A] Object को Value Type में Convert करना
[B] Value Type को Object में Convert करना
[C] Array को Object में Convert करना
[D] String को Object में Convert करना
211. What is Unboxing?
[A] Converting Object to Value Type
[B] Converting Value Type to Object
[C] Array to Object
[D] String to Object
सही उत्तर: Object को Value Type में Convert करना
व्याख्या: Unboxing Boxing का Reverse Process है।
Correct Answer: Converting Object to Value Type
Explanation: Unboxing is the reverse of boxing.
212. var Keyword क्या करता है?
[A] Compile Time Type Inference
[B] Runtime Type Inference
[C] Database Mapping
[D] Routing
212. What does the var keyword do?
[A] Compile Time Type Inference
[B] Runtime Type Inference
[C] Database Mapping
[D] Routing
सही उत्तर: Compile Time Type Inference
व्याख्या: Compiler Variable का Type Automatically Determine करता है।
Correct Answer: Compile Time Type Inference
Explanation: The compiler automatically determines the variable type.
213. dynamic Keyword का Type कब निर्धारित होता है?
[A] Runtime
[B] Compile Time
[C] Build Time
[D] Design Time
213. When is the type of dynamic determined?
[A] Runtime
[B] Compile Time
[C] Build Time
[D] Design Time
सही उत्तर: Runtime
व्याख्या: dynamic का Type Runtime पर Resolve होता है।
Correct Answer: Runtime
Explanation: The type of dynamic is resolved at runtime.
214. var और dynamic में मुख्य अंतर क्या है?
[A] var Compile Time, dynamic Runtime
[B] दोनों समान हैं
[C] var Runtime, dynamic Compile Time
[D] कोई अंतर नहीं
214. What is the main difference between var and dynamic?
[A] var Compile Time, dynamic Runtime
[B] Both are same
[C] var Runtime, dynamic Compile Time
[D] No difference
सही उत्तर: var Compile Time, dynamic Runtime
व्याख्या: var Compile Time पर और dynamic Runtime पर Resolve होता है।
Correct Answer: var Compile Time, dynamic Runtime
Explanation: var is resolved at compile time, dynamic at runtime.
215. ref Parameter का उपयोग किसलिए होता है?
[A] Reference द्वारा Value Pass करना
[B] Value Copy करना
[C] Database Query
[D] Routing
215. What is ref parameter used for?
[A] Pass Value by Reference
[B] Copy Value
[C] Database Query
[D] Routing
सही उत्तर: Reference द्वारा Value Pass करना
व्याख्या: ref Parameter को Call से पहले Initialize करना आवश्यक है।
Correct Answer: Pass Value by Reference
Explanation: ref parameters must be initialized before method call.
216. out Parameter की विशेषता क्या है?
[A] Method के अंदर Value Assign करना आवश्यक है
[B] Initialize करना आवश्यक है
[C] Read Only होता है
[D] Static होता है
216. What is a characteristic of out parameter?
[A] Must be assigned inside method
[B] Must be initialized before call
[C] Read Only
[D] Static
सही उत्तर: Method के अंदर Value Assign करना आवश्यक है
व्याख्या: out Parameter Method से Multiple Values Return करने में सहायक है।
Correct Answer: Must be assigned inside method
Explanation: out parameter helps return multiple values.
217. in Parameter का उपयोग किसलिए किया जाता है?
[A] Read Only Reference Pass करने के लिए
[B] Value Copy करने के लिए
[C] Database Access
[D] Caching
217. What is in parameter used for?
[A] Pass Read Only Reference
[B] Copy Value
[C] Database Access
[D] Caching
सही उत्तर: Read Only Reference Pass करने के लिए
व्याख्या: in Parameter Reference से Pass होती है लेकिन Modify नहीं की जा सकती।
Correct Answer: Pass Read Only Reference
Explanation: in parameter passes reference without allowing modification.
218. params Keyword का उपयोग किसलिए किया जाता है?
[A] Variable Number of Arguments Pass करने के लिए
[B] Database Parameters
[C] Routing
[D] Authentication
218. What is params keyword used for?
[A] Pass Variable Number of Arguments
[B] Database Parameters
[C] Routing
[D] Authentication
सही उत्तर: Variable Number of Arguments Pass करने के लिए
व्याख्या: params Method को Variable Arguments स्वीकार करने देता है।
Correct Answer: Pass Variable Number of Arguments
Explanation: params allows methods to accept variable arguments.
219. nameof Operator क्या Return करता है?
[A] Member का Name String के रूप में
[B] Object Value
[C] Memory Address
[D] Type Value
219. What does nameof operator return?
[A] Name of Member as String
[B] Object Value
[C] Memory Address
[D] Type Value
सही उत्तर: Member का Name String के रूप में
व्याख्या: nameof Compile Time पर Member Name Return करता है।
Correct Answer: Name of Member as String
Explanation: nameof returns the member name at compile time.
220. Tuple क्या है?
[A] Multiple Values Return करने का तरीका
[B] Database Table
[C] Interface
[D] Middleware
220. What is a Tuple?
[A] Way to Return Multiple Values
[B] Database Table
[C] Interface
[D] Middleware
सही उत्तर: Multiple Values Return करने का तरीका
व्याख्या: Tuple एक Method से अनेक Values Return करने की सुविधा देता है।
Correct Answer: Way to Return Multiple Values
Explanation: A tuple allows returning multiple values from a method.