[ PHP Programming MCQS ]

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

[ PHP Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
591. Laravel Queue Worker start करने का command क्या है?
[A] php artisan queue:work
[B] php artisan queue:start
[C] php artisan worker:start
[D] php artisan queue:run
591. Which command starts a Laravel Queue Worker?
[A] php artisan queue:work
[B] php artisan queue:start
[C] php artisan worker:start
[D] php artisan queue:run
सही उत्तर: php artisan queue:work
व्याख्या: Queued jobs process करता है।
Correct Answer: php artisan queue:work
Explanation: Processes queued jobs.
592. Laravel Events का मुख्य उद्देश्य क्या है?
[A] Decouple Application Logic
[B] Store Sessions
[C] Create Tables
[D] Compile Assets
592. What is the main purpose of Laravel Events?
[A] Decouple Application Logic
[B] Store Sessions
[C] Create Tables
[D] Compile Assets
सही उत्तर: Decouple Application Logic
व्याख्या: Loose coupling और event-driven architecture।
Correct Answer: Decouple Application Logic
Explanation: Promotes loose coupling and event-driven design.
593. Event Listener का कार्य क्या है?
[A] Handle Events
[B] Store Files
[C] Manage Views
[D] Generate Routes
593. What does an Event Listener do?
[A] Handle Events
[B] Store Files
[C] Manage Views
[D] Generate Routes
सही उत्तर: Handle Events
व्याख्या: Triggered events को process करता है।
Correct Answer: Handle Events
Explanation: Processes triggered events.
594. Laravel Broadcasting किसलिए उपयोग होता है?
[A] Real-time Events
[B] Database Backup
[C] File Compression
[D] Authentication
594. What is Laravel Broadcasting used for?
[A] Real-time Events
[B] Database Backup
[C] File Compression
[D] Authentication
सही उत्तर: Real-time Events
व्याख्या: WebSockets के माध्यम से real-time updates भेजता है।
Correct Answer: Real-time Events
Explanation: Sends real-time updates via WebSockets.
595. Laravel Echo क्या है?
[A] JavaScript Library
[B] PHP Framework
[C] Database Driver
[D] Queue Manager
595. What is Laravel Echo?
[A] JavaScript Library
[B] PHP Framework
[C] Database Driver
[D] Queue Manager
सही उत्तर: JavaScript Library
व्याख्या: Broadcasted events सुनने के लिए।
Correct Answer: JavaScript Library
Explanation: Listens for broadcasted events.
596. Eloquent ORM का पूरा नाम क्या है?
[A] Object Relational Mapping
[B] Online Resource Manager
[C] Object Resource Mapping
[D] Optimized Relational Module
596. What does ORM stand for?
[A] Object Relational Mapping
[B] Online Resource Manager
[C] Object Resource Mapping
[D] Optimized Relational Module
सही उत्तर: Object Relational Mapping
व्याख्या: Database records को objects के रूप में handle करता है।
Correct Answer: Object Relational Mapping
Explanation: Handles database records as objects.
597. Eloquent Model generate करने का command क्या है?
[A] php artisan make:model
[B] php artisan create:model
[C] php artisan model:new
[D] php artisan generate:model
597. Which command generates an Eloquent Model?
[A] php artisan make:model
[B] php artisan create:model
[C] php artisan model:new
[D] php artisan generate:model
सही उत्तर: php artisan make:model
व्याख्या: नई model class create करता है।
Correct Answer: php artisan make:model
Explanation: Creates a new model class.
598. hasOne relationship क्या दर्शाती है?
[A] One-to-One
[B] One-to-Many
[C] Many-to-Many
[D] Polymorphic
598. What does hasOne relationship represent?
[A] One-to-One
[B] One-to-Many
[C] Many-to-Many
[D] Polymorphic
सही उत्तर: One-to-One
व्याख्या: एक model का दूसरे model से एक संबंध।
Correct Answer: One-to-One
Explanation: One model is related to exactly one other model.
599. hasMany relationship क्या दर्शाती है?
[A] One-to-Many
[B] One-to-One
[C] Many-to-Many
[D] Polymorphic
599. What does hasMany relationship represent?
[A] One-to-Many
[B] One-to-One
[C] Many-to-Many
[D] Polymorphic
सही उत्तर: One-to-Many
व्याख्या: एक model के कई related records हो सकते हैं।
Correct Answer: One-to-Many
Explanation: One model can have many related records.
600. belongsTo relationship का उपयोग कब होता है?
[A] Child से Parent Relation
[B] Parent से Child Relation
[C] Many-to-Many
[D] No Relation
600. When is belongsTo relationship used?
[A] Child to Parent Relation
[B] Parent to Child Relation
[C] Many-to-Many
[D] No Relation
सही उत्तर: Child से Parent Relation
व्याख्या: Foreign key child table में होती है।
Correct Answer: Child to Parent Relation
Explanation: Foreign key exists in child table.