[ PHP Programming MCQS ]

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

[ PHP Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
321. Factory Pattern का उपयोग किसलिए किया जाता है?
[A] Object Creation
[B] Database Query
[C] Caching
[D] Authentication
321. What is Factory Pattern used for?
[A] Object Creation
[B] Database Query
[C] Caching
[D] Authentication
सही उत्तर: Object Creation
व्याख्या: Objects create करने की प्रक्रिया को abstract करता है।
Correct Answer: Object Creation
Explanation: Abstracts the object creation process.
322. Singleton Pattern का उद्देश्य क्या है?
[A] Multiple Instances
[B] Only One Instance
[C] Faster Queries
[D] More Memory Usage
322. What is the purpose of Singleton Pattern?
[A] Multiple Instances
[B] Only One Instance
[C] Faster Queries
[D] More Memory Usage
सही उत्तर: Only One Instance
व्याख्या: Class की केवल एक instance सुनिश्चित करता है।
Correct Answer: Only One Instance
Explanation: Ensures only one instance of a class exists.
323. Observer Pattern किस प्रकार की architecture में उपयोगी है?
[A] Event Driven
[B] Database Driven
[C] File Driven
[D] Template Driven
323. Observer Pattern is useful in which architecture?
[A] Event Driven
[B] Database Driven
[C] File Driven
[D] Template Driven
सही उत्तर: Event Driven
व्याख्या: Events होने पर observers को notify करता है।
Correct Answer: Event Driven
Explanation: Notifies observers when events occur.
324. Laravel Service Provider का मुख्य कार्य क्या है?
[A] Register Services
[B] Manage CSS
[C] Store Sessions
[D] Compile Code
324. What is the main role of a Laravel Service Provider?
[A] Register Services
[B] Manage CSS
[C] Store Sessions
[D] Compile Code
सही उत्तर: Register Services
व्याख्या: Application services को container में register करता है।
Correct Answer: Register Services
Explanation: Registers application services into the container.
325. Laravel Middleware का उपयोग किसलिए होता है?
[A] HTTP Request Filtering
[B] Database Backup
[C] Template Parsing
[D] Cache Storage
325. What is Laravel Middleware used for?
[A] HTTP Request Filtering
[B] Database Backup
[C] Template Parsing
[D] Cache Storage
सही उत्तर: HTTP Request Filtering
व्याख्या: Request और Response के बीच filtering layer।
Correct Answer: HTTP Request Filtering
Explanation: Acts as a filtering layer for requests and responses.
326. Laravel Queue का मुख्य लाभ क्या है?
[A] Synchronous Processing
[B] Background Processing
[C] Database Migration
[D] Session Sharing
326. What is the main advantage of Laravel Queues?
[A] Synchronous Processing
[B] Background Processing
[C] Database Migration
[D] Session Sharing
सही उत्तर: Background Processing
व्याख्या: Time-consuming tasks को background में execute करता है।
Correct Answer: Background Processing
Explanation: Executes time-consuming tasks in background.
327. Laravel Queue के लिए कौन-सा backend commonly उपयोग होता है?
[A] Redis
[B] HTML
[C] CSS
[D] XML
327. Which backend is commonly used for Laravel Queues?
[A] Redis
[B] HTML
[C] CSS
[D] XML
सही उत्तर: Redis
व्याख्या: High-performance queue processing के लिए।
Correct Answer: Redis
Explanation: Used for high-performance queue processing.
328. RabbitMQ मुख्य रूप से किसलिए प्रयोग होता है?
[A] Message Queueing
[B] Image Processing
[C] CSS Rendering
[D] Template Engine
328. What is RabbitMQ mainly used for?
[A] Message Queueing
[B] Image Processing
[C] CSS Rendering
[D] Template Engine
सही उत्तर: Message Queueing
व्याख्या: Applications के बीच asynchronous communication।
Correct Answer: Message Queueing
Explanation: Provides asynchronous communication between applications.
329. Message Queue का मुख्य लाभ क्या है?
[A] Tight Coupling
[B] Loose Coupling
[C] More Database Load
[D] More Memory Usage
329. What is the primary benefit of Message Queues?
[A] Tight Coupling
[B] Loose Coupling
[C] More Database Load
[D] More Memory Usage
सही उत्तर: Loose Coupling
व्याख्या: Systems को independently scale करने देता है।
Correct Answer: Loose Coupling
Explanation: Allows systems to scale independently.
330. Elasticsearch किस प्रकार का database है?
[A] Relational Database
[B] Search Engine Database
[C] Graph Database
[D] Time Series Database
330. What type of database is Elasticsearch?
[A] Relational Database
[B] Search Engine Database
[C] Graph Database
[D] Time Series Database
सही उत्तर: Search Engine Database
व्याख्या: Full-text search और analytics के लिए।
Correct Answer: Search Engine Database
Explanation: Used for full-text search and analytics.