[C-Sharp Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ C-Sharp Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
281. Endpoint Routing का मुख्य उद्देश्य क्या है?
[A] Database Access
[B] Incoming Requests को सही Endpoint से Map करना
[C] Memory Management
[D] Logging करना
281. What is the main purpose of Endpoint Routing?
[A] Database access
[B] Map incoming requests to the correct endpoint
[C] Memory management
[D] Logging
सही उत्तर: Incoming Requests को सही Endpoint से Map करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Map incoming requests to the correct endpoint
Explanation: Important question.
282. Minimal API का सबसे बड़ा लाभ क्या है?
[A] Large Configuration Files
[B] कम Boilerplate Code
[C] Slow Execution
[D] Only MVC Support
282. What is the biggest advantage of Minimal APIs?
[A] Large configuration files
[B] Less boilerplate code
[C] Slow execution
[D] Only MVC support
सही उत्तर: कम Boilerplate Code
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Less boilerplate code
Explanation: Important question.
283. gRPC Streaming का मुख्य लाभ क्या है?
[A] केवल Single Message भेजना
[B] Client और Server के बीच Continuous Data Streaming
[C] Database Backup
[D] File Compression
283. What is the main advantage of gRPC Streaming?
[A] Send only a single message
[B] Continuous data streaming between client and server
[C] Database backup
[D] File compression
सही उत्तर: Client और Server के बीच Continuous Data Streaming
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Continuous data streaming between client and server
Explanation: Important question.
284. WebSocket Protocol का मुख्य उपयोग क्या है?
[A] Database Connection
[B] Real-Time Bidirectional Communication
[C] Image Processing
[D] File Encryption
284. What is the primary use of the WebSocket protocol?
[A] Database connection
[B] Real-time bidirectional communication
[C] Image processing
[D] File encryption
सही उत्तर: Real-Time Bidirectional Communication
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Real-time bidirectional communication
Explanation: Important question.
285. Background Queue Pattern का मुख्य उद्देश्य क्या है?
[A] UI Design करना
[B] Long Running Tasks को Background में Process करना
[C] Database Delete करना
[D] Memory Leak रोकना
285. What is the primary purpose of the Background Queue pattern?
[A] Design UI
[B] Process long-running tasks in the background
[C] Delete databases
[D] Prevent memory leaks
सही उत्तर: Long Running Tasks को Background में Process करना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Process long-running tasks in the background
Explanation: Important question.
286. Worker Service Template मुख्य रूप से किस प्रकार के Applications के लिए उपयोग होती है?
[A] Console Calculator
[B] Background Services
[C] Windows Forms
[D] WPF Applications
286. The Worker Service template is mainly used for which type of applications?
[A] Console calculator
[B] Background services
[C] Windows Forms
[D] WPF applications
सही उत्तर: Background Services
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Background services
Explanation: Important question.
287. Distributed Cache (Redis) का मुख्य लाभ क्या है?
[A] केवल Local Memory उपयोग करना
[B] Multiple Servers के बीच Shared Cache उपलब्ध कराना
[C] Database Replace करना
[D] Garbage Collection रोकना
287. What is the primary advantage of Distributed Cache (Redis)?
[A] Use only local memory
[B] Provide shared cache across multiple servers
[C] Replace databases
[D] Stop garbage collection
सही उत्तर: Multiple Servers के बीच Shared Cache उपलब्ध कराना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Provide shared cache across multiple servers
Explanation: Important question.
288. C# में Index Operator ^ (hat) का उपयोग क्या करता है?
[A] Start से index करता है
[B] End से index करता है
[C] Random index करता है
[D] Memory clear करता है
288. What does the Index operator ^ (hat) do in C#?
[A] Indexes from start
[B] Indexes from end
[C] Random indexing
[D] Clears memory
सही उत्तर: End से index करता है
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Indexes from end
Explanation: Important question.
289. C# में Range Operator (..) का उपयोग किसलिए होता है?
[A] Loop बनाने के लिए
[B] Sub-array निकालने के लिए
[C] Database query के लिए
[D] Thread बनाने के लिए
289. What is the purpose of the Range operator (..) in C#?
[A] To create loop
[B] To extract sub-array
[C] For database query
[D] To create thread
सही उत्तर: Sub-array निकालने के लिए
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: To extract sub-array
Explanation: Important question.
290. Pattern Matching का मुख्य उपयोग क्या है?
[A] File handling
[B] Type और Value check को आसान बनाना
[C] Database connection
[D] Memory allocation
290. What is the main use of Pattern Matching?
[A] File handling
[B] Simplify type and value checks
[C] Database connection
[D] Memory allocation
सही उत्तर: Type और Value check को आसान बनाना
व्याख्या: महत्वपूर्ण प्रश्न।
Correct Answer: Simplify type and value checks
Explanation: Important question.