[ DOT NET Core MCQS ]

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

[ DOT NET Core MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
221. ValueTuple किस Version में Introduce किया गया?
[A] C# 7.0
[B] C# 5.0
[C] C# 3.0
[D] C# 2.0
221. In which version was ValueTuple introduced?
[A] C# 7.0
[B] C# 5.0
[C] C# 3.0
[D] C# 2.0
सही उत्तर: C# 7.0
व्याख्या: ValueTuple C# 7.0 में Introduce किया गया था।
Correct Answer: C# 7.0
Explanation: ValueTuple was introduced in C# 7.0.
222. Record Type का मुख्य लाभ क्या है?
[A] Immutable Data Models
[B] Database Access
[C] Routing
[D] Caching
222. What is the main benefit of Record types?
[A] Immutable Data Models
[B] Database Access
[C] Routing
[D] Caching
सही उत्तर: Immutable Data Models
व्याख्या: Records Immutable Data Objects बनाने के लिए उपयोग होते हैं।
Correct Answer: Immutable Data Models
Explanation: Records are used for immutable data models.
223. Record Type किस Version में Introduce हुई?
[A] C# 9.0
[B] C# 7.0
[C] C# 6.0
[D] C# 5.0
223. In which version were Record types introduced?
[A] C# 9.0
[B] C# 7.0
[C] C# 6.0
[D] C# 5.0
सही उत्तर: C# 9.0
व्याख्या: Record Type C# 9.0 की प्रमुख विशेषता है।
Correct Answer: C# 9.0
Explanation: Record types were introduced in C# 9.0.
224. Pattern Matching का उपयोग किसलिए किया जाता है?
[A] Type और Data Matching
[B] Database Query
[C] Routing
[D] Caching
224. What is Pattern Matching used for?
[A] Type and Data Matching
[B] Database Query
[C] Routing
[D] Caching
सही उत्तर: Type और Data Matching
व्याख्या: Pattern Matching Code को अधिक Readable बनाती है।
Correct Answer: Type and Data Matching
Explanation: Pattern matching improves code readability.
225. is Keyword Pattern Matching में किसलिए उपयोग होती है?
[A] Type Check करने के लिए
[B] Database Access
[C] Routing
[D] Logging
225. What is the is keyword used for in pattern matching?
[A] Type Checking
[B] Database Access
[C] Routing
[D] Logging
सही उत्तर: Type Check करने के लिए
व्याख्या: is Keyword Runtime Type Check करती है।
Correct Answer: Type Checking
Explanation: The is keyword checks runtime types.
226. switch Expression किस Version में Introduce हुई?
[A] C# 8.0
[B] C# 5.0
[C] C# 6.0
[D] C# 7.0
226. In which version was switch expression introduced?
[A] C# 8.0
[B] C# 5.0
[C] C# 6.0
[D] C# 7.0
सही उत्तर: C# 8.0
व्याख्या: Switch Expression Traditional Switch का आधुनिक रूप है।
Correct Answer: C# 8.0
Explanation: Switch expressions are a modern form of switch statements.
227. IAsyncEnumerable का उपयोग किसलिए किया जाता है?
[A] Async Streams
[B] Database Backup
[C] Caching
[D] Routing
227. What is IAsyncEnumerable used for?
[A] Async Streams
[B] Database Backup
[C] Caching
[D] Routing
सही उत्तर: Async Streams
व्याख्या: Async Streams Data को Asynchronously Iterate करने देती हैं।
Correct Answer: Async Streams
Explanation: It enables asynchronous iteration of data.
228. await foreach किसके साथ उपयोग होता है?
[A] IAsyncEnumerable
[B] IEnumerable
[C] List
[D] Array
228. await foreach is used with?
[A] IAsyncEnumerable
[B] IEnumerable
[C] List
[D] Array
सही उत्तर: IAsyncEnumerable
व्याख्या: Async Streams को Iterate करने के लिए await foreach उपयोग होता है।
Correct Answer: IAsyncEnumerable
Explanation: await foreach iterates asynchronous streams.
229. Custom Middleware बनाने के लिए कौन सा Method आवश्यक है?
[A] InvokeAsync
[B] Execute
[C] RunAsync
[D] StartAsync
229. Which method is required for custom middleware?
[A] InvokeAsync
[B] Execute
[C] RunAsync
[D] StartAsync
सही उत्तर: InvokeAsync
व्याख्या: Custom Middleware में InvokeAsync Method Implement की जाती है।
Correct Answer: InvokeAsync
Explanation: Custom middleware implements InvokeAsync.
230. Middleware Pipeline क्या है?
[A] Request Processing Chain
[B] Database Chain
[C] Logging Chain
[D] UI Chain
230. What is Middleware Pipeline?
[A] Request Processing Chain
[B] Database Chain
[C] Logging Chain
[D] UI Chain
सही उत्तर: Request Processing Chain
व्याख्या: Request Middleware Components के माध्यम से गुजरती है।
Correct Answer: Request Processing Chain
Explanation: Requests pass through middleware components.