[ PHP Programming MCQS ]
झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।
[ PHP Programming MCQS ]
Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
81. MVC में business logic कहाँ रखी जाती है?
[A] View
[B] Controller
[C] Model
[D] Route
81. Where is business logic stored in MVC?
[A] View
[B] Controller
[C] Model
[D] Route
सही उत्तर: Model
व्याख्या: Application logic Model में होती है।
Correct Answer: Model
Explanation: Business logic belongs to Model.
82. MVC में user interface कहाँ होता है?
[A] Model
[B] View
[C] Controller
[D] Middleware
82. Where is the user interface located in MVC?
[A] Model
[B] View
[C] Controller
[D] Middleware
सही उत्तर: View
व्याख्या: Presentation layer View होती है।
Correct Answer: View
Explanation: Presentation layer is the View.
83. Dependency Injection का मुख्य लाभ क्या है?
[A] Security
[B] Loose Coupling
[C] Speed Only
[D] Storage
83. What is the main benefit of Dependency Injection?
[A] Security
[B] Loose Coupling
[C] Speed Only
[D] Storage
सही उत्तर: Loose Coupling
व्याख्या: Classes के बीच dependency कम करता है।
Correct Answer: Loose Coupling
Explanation: Reduces dependency between classes.
84. Laravel किस architecture pattern पर आधारित है?
[A] MVC
[B] MVP
[C] MVVM
[D] DAO
84. Laravel is based on which architecture pattern?
[A] MVC
[B] MVP
[C] MVVM
[D] DAO
सही उत्तर: MVC
व्याख्या: Laravel MVC framework है।
Correct Answer: MVC
Explanation: Laravel follows MVC architecture.
85. Laravel का default template engine कौन-सा है?
[A] Twig
[B] Blade
[C] Smarty
[D] Volt
85. What is Laravel’s default template engine?
[A] Twig
[B] Blade
[C] Smarty
[D] Volt
सही उत्तर: Blade
व्याख्या: Blade Laravel का templating engine है।
Correct Answer: Blade
Explanation: Blade is Laravel’s templating engine.
86. Laravel routes किस file में define होते हैं?
[A] config.php
[B] web.php
[C] route.php
[D] index.php
86. In which file are Laravel web routes defined?
[A] config.php
[B] web.php
[C] route.php
[D] index.php
सही उत्तर: web.php
व्याख्या: Web routes routes/web.php में होती हैं।
Correct Answer: web.php
Explanation: Web routes are stored in routes/web.php.
87. Laravel में database migration के लिए कौन-सा command प्रयोग होता है?
[A] php artisan migrate
[B] php artisan db
[C] php artisan schema
[D] php artisan create-db
87. Which command runs Laravel migrations?
[A] php artisan migrate
[B] php artisan db
[C] php artisan schema
[D] php artisan create-db
सही उत्तर: php artisan migrate
व्याख्या: Migration files execute करता है।
Correct Answer: php artisan migrate
Explanation: Executes migration files.
88. Laravel में नया controller बनाने के लिए कौन-सा command प्रयोग होता है?
[A] php artisan make:controller
[B] php artisan controller
[C] php artisan new:controller
[D] php artisan create:controller
88. Which command creates a controller in Laravel?
[A] php artisan make:controller
[B] php artisan controller
[C] php artisan new:controller
[D] php artisan create:controller
सही उत्तर: php artisan make:controller
व्याख्या: Controller generate करता है।
Correct Answer: php artisan make:controller
Explanation: Generates a controller.
89. Laravel में middleware का उद्देश्य क्या है?
[A] Database Create करना
[B] Request Filter करना
[C] View Render करना
[D] Session Delete करना
89. What is the purpose of middleware in Laravel?
[A] Create Database
[B] Filter Requests
[C] Render Views
[D] Delete Sessions
सही उत्तर: Request Filter करना
व्याख्या: Request और response के बीच कार्य करता है।
Correct Answer: Filter Requests
Explanation: Works between request and response.
90. Laravel में ORM का नाम क्या है?
[A] Doctrine
[B] Eloquent
[C] PDO
[D] ActiveDB
90. What is the name of Laravel ORM?
[A] Doctrine
[B] Eloquent
[C] PDO
[D] ActiveDB
सही उत्तर: Eloquent
व्याख्या: Laravel का ORM Eloquent है।
Correct Answer: Eloquent
Explanation: Laravel ORM is Eloquent.