[ PHP Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ PHP Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
581. Event Sourcing में state कैसे store होती है?
[A] Events के रूप में
[B] Only Current Data
[C] Cache में
[D] Session में
581. How is state stored in Event Sourcing?
[A] As Events
[B] Only Current Data
[C] In Cache
[D] In Session
सही उत्तर: Events के रूप में
व्याख्या: System state events replay करके rebuild की जा सकती है।
Correct Answer: As Events
Explanation: State can be rebuilt by replaying events.
582. Event Store का मुख्य कार्य क्या है?
[A] Store Domain Events
[B] Store Sessions
[C] Store Images
[D] Store CSS Files
582. What is the main purpose of an Event Store?
[A] Store Domain Events
[B] Store Sessions
[C] Store Images
[D] Store CSS Files
सही उत्तर: Store Domain Events
व्याख्या: Event Sourcing architecture का core component।
Correct Answer: Store Domain Events
Explanation: Core component of Event Sourcing architecture.
583. Laravel किस architectural pattern पर आधारित है?
[A] MVC
[B] MVVM
[C] Layered
[D] MVP
583. Laravel is based on which architectural pattern?
[A] MVC
[B] MVVM
[C] Layered
[D] MVP
सही उत्तर: MVC
व्याख्या: Laravel Model-View-Controller pattern का उपयोग करता है।
Correct Answer: MVC
Explanation: Laravel follows the Model-View-Controller pattern.
584. Laravel का dependency management tool कौन-सा है?
[A] Composer
[B] NPM
[C] Yarn
[D] Bower
584. Which dependency management tool does Laravel use?
[A] Composer
[B] NPM
[C] Yarn
[D] Bower
सही उत्तर: Composer
व्याख्या: Laravel dependencies Composer द्वारा manage की जाती हैं।
Correct Answer: Composer
Explanation: Laravel dependencies are managed by Composer.
585. Laravel Service Container का मुख्य उद्देश्य क्या है?
[A] Dependency Injection
[B] Database Storage
[C] Session Handling
[D] File Upload
585. What is the main purpose of Laravel Service Container?
[A] Dependency Injection
[B] Database Storage
[C] Session Handling
[D] File Upload
सही उत्तर: Dependency Injection
व्याख्या: Classes की dependencies automatically resolve करता है।
Correct Answer: Dependency Injection
Explanation: Automatically resolves class dependencies.
586. Service Provider का मुख्य कार्य क्या है?
[A] Bootstrap Services
[B] Store Sessions
[C] Compile CSS
[D] Manage Images
586. What is the primary role of a Service Provider?
[A] Bootstrap Services
[B] Store Sessions
[C] Compile CSS
[D] Manage Images
सही उत्तर: Bootstrap Services
व्याख्या: Application services register और configure करता है।
Correct Answer: Bootstrap Services
Explanation: Registers and configures application services.
587. Laravel में default Service Provider directory कौन-सी है?
[A] app/Providers
[B] app/Services
[C] config/providers
[D] resources/providers
587. What is the default Service Provider directory in Laravel?
[A] app/Providers
[B] app/Services
[C] config/providers
[D] resources/providers
सही उत्तर: app/Providers
व्याख्या: सभी service providers यहाँ रखे जाते हैं।
Correct Answer: app/Providers
Explanation: All service providers are stored here.
588. Middleware का मुख्य उद्देश्य क्या है?
[A] Filter HTTP Requests
[B] Store Database Records
[C] Compile Views
[D] Send Emails
588. What is the main purpose of Middleware?
[A] Filter HTTP Requests
[B] Store Database Records
[C] Compile Views
[D] Send Emails
सही उत्तर: Filter HTTP Requests
व्याख्या: Request और response के बीच layer की तरह काम करता है।
Correct Answer: Filter HTTP Requests
Explanation: Acts as a layer between request and response.
589. Laravel में middleware register कहाँ किया जाता है?
[A] Kernel.php
[B] web.php
[C] config.php
[D] provider.php
589. Where are middleware registered in Laravel?
[A] Kernel.php
[B] web.php
[C] config.php
[D] provider.php
सही उत्तर: Kernel.php
व्याख्या: HTTP Kernel middleware manage करता है।
Correct Answer: Kernel.php
Explanation: HTTP Kernel manages middleware.
590. Queue Job generate करने का command क्या है?
[A] php artisan make:job
[B] php artisan create:job
[C] php artisan queue:make
[D] php artisan generate:job
590. Which command creates a Queue Job?
[A] php artisan make:job
[B] php artisan create:job
[C] php artisan queue:make
[D] php artisan generate:job
सही उत्तर: php artisan make:job
व्याख्या: नई Job class create करता है।
Correct Answer: php artisan make:job
Explanation: Creates a new Job class.