[C-Sharp Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ C-Sharp Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
461. Top-level statements का use किसलिए होता है?
[A] Verbose code लिखने के लिए
[B] Boilerplate code कम करने के लिए
[C] Thread creation
[D] Memory allocation
461. What are top-level statements used for?
[A] Verbose code
[B] Reduce boilerplate code
[C] Thread creation
[D] Memory allocation
सही उत्तर: Boilerplate code कम करने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Reduce boilerplate code
Explanation: Important question.
462. Nullable reference types का उद्देश्य क्या है?
[A] Performance increase करना
[B] Null-related bugs reduce करना
[C] Thread safety
[D] File handling
462. What is the purpose of nullable reference types?
[A] Increase performance
[B] Reduce null-related bugs
[C] Thread safety
[D] File handling
सही उत्तर: Null-related bugs reduce करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Reduce null-related bugs
Explanation: Important question.
463. HTTP Client को best practice में कैसे use करना चाहिए?
[A] हर request पर नया object बनाना
[B] Singleton HttpClient reuse करना
[C] Dispose immediately after use
[D] Static variable avoid करना
463. What is the best practice for using HttpClient?
[A] Create new object per request
[B] Reuse singleton HttpClient
[C] Dispose immediately after use
[D] Avoid static usage
सही उत्तर: Singleton HttpClient reuse करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Reuse singleton HttpClient
Explanation: Important question.
464. HttpClient को बार-बार create करने की problem क्या है?
[A] Memory optimization
[B] Sockets exhaustion
[C] Faster performance
[D] Thread safety increase
464. What is the issue with creating HttpClient repeatedly?
[A] Memory optimization
[B] Sockets exhaustion
[C] Faster performance
[D] Thread safety increase
सही उत्तर: Sockets exhaustion
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Sockets exhaustion
Explanation: Important question.
465. EF Core में tracking का मतलब क्या है?
[A] SQL queries log करना
[B] Entity state monitor करना
[C] Thread tracking
[D] File tracking
465. What does tracking mean in EF Core?
[A] Logging SQL queries
[B] Monitoring entity state
[C] Thread tracking
[D] File tracking
सही उत्तर: Entity state monitor करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Monitoring entity state
Explanation: Important question.
466. No-tracking query का फायदा क्या है?
[A] High memory usage
[B] Better performance for read-only data
[C] Slow execution
[D] Locking data
466. What is the benefit of no-tracking query?
[A] High memory usage
[B] Better performance for read-only data
[C] Slow execution
[D] Data locking
सही उत्तर: Better performance for read-only data
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Better performance for read-only data
Explanation: Important question.
467. DbContext lifetime best practice क्या है?
[A] Singleton
[B] Scoped per request
[C] Static instance
[D] Transient always
467. What is best practice for DbContext lifetime?
[A] Singleton
[B] Scoped per request
[C] Static instance
[D] Transient always
सही उत्तर: Scoped per request
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Scoped per request
Explanation: Important question.
468. EF Core में migrations का use क्या है?
[A] Thread management
[B] Database schema version control
[C] Memory allocation
[D] Caching
468. What are migrations used for in EF Core?
[A] Thread management
[B] Database schema version control
[C] Memory allocation
[D] Caching
सही उत्तर: Database schema version control
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Database schema version control
Explanation: Important question.
469. API response caching का main benefit क्या है?
[A] Increased DB load
[B] Faster response time
[C] Memory leak
[D] Thread blocking
469. What is the main benefit of API response caching?
[A] Increased DB load
[B] Faster response time
[C] Memory leak
[D] Thread blocking
सही उत्तर: Faster response time
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Faster response time
Explanation: Important question.
470. JWT token का मुख्य उद्देश्य क्या है?
[A] File transfer
[B] Authentication and authorization
[C] Database migration
[D] Thread handling
470. What is the main purpose of JWT token?
[A] File transfer
[B] Authentication and authorization
[C] Database migration
[D] Thread handling
सही उत्तर: Authentication and authorization
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Authentication and authorization
Explanation: Important question.