[ PHP Programming MCQS ]

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

[ PHP Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
611. Notification class generate करने का command क्या है?
[A] php artisan make:notification
[B] php artisan create:notification
[C] php artisan generate:notification
[D] php artisan notify:create
611. Which command generates a Notification class?
[A] php artisan make:notification
[B] php artisan create:notification
[C] php artisan generate:notification
[D] php artisan notify:create
सही उत्तर: php artisan make:notification
व्याख्या: नई notification class बनाता है।
Correct Answer: php artisan make:notification
Explanation: Creates a new notification class.
612. Laravel Mail किस package पर आधारित है?
[A] Symfony Mailer
[B] PHPMailer
[C] SwiftMailer
[D] Nodemailer
612. Laravel Mail is based on which package?
[A] Symfony Mailer
[B] PHPMailer
[C] SwiftMailer
[D] Nodemailer
सही उत्तर: Symfony Mailer
व्याख्या: नए Laravel versions Symfony Mailer का उपयोग करते हैं।
Correct Answer: Symfony Mailer
Explanation: Modern Laravel versions use Symfony Mailer.
613. Mailable class generate करने का command क्या है?
[A] php artisan make:mail
[B] php artisan mail:create
[C] php artisan generate:mail
[D] php artisan create:mailable
613. Which command creates a Mailable class?
[A] php artisan make:mail
[B] php artisan mail:create
[C] php artisan generate:mail
[D] php artisan create:mailable
सही उत्तर: php artisan make:mail
व्याख्या: Custom email class generate करता है।
Correct Answer: php artisan make:mail
Explanation: Creates a custom email class.
614. Laravel में email queue करने का लाभ क्या है?
[A] Faster User Response
[B] More CPU Usage
[C] More Waiting Time
[D] More Errors
614. What is the benefit of queueing emails in Laravel?
[A] Faster user response
[B] More CPU usage
[C] More waiting time
[D] More errors
सही उत्तर: Faster User Response
व्याख्या: Email sending background में होती है।
Correct Answer: Faster user response
Explanation: Email sending occurs in background.
615. Laravel Cache का मुख्य उद्देश्य क्या है?
[A] Improve Performance
[B] Store Images
[C] Manage Sessions Only
[D] Compile PHP
615. What is the main purpose of Laravel Cache?
[A] Improve Performance
[B] Store Images
[C] Manage Sessions Only
[D] Compile PHP
सही उत्तर: Improve Performance
व्याख्या: Frequently used data को cache करता है।
Correct Answer: Improve Performance
Explanation: Caches frequently used data.
616. Laravel में default cache drivers में कौन शामिल है?
[A] File
[B] Oracle
[C] MongoDB
[D] PostgreSQL
616. Which is a default Laravel cache driver?
[A] File
[B] Oracle
[C] MongoDB
[D] PostgreSQL
सही उत्तर: File
व्याख्या: File cache Laravel का built-in driver है।
Correct Answer: File
Explanation: File cache is a built-in driver.
617. Laravel में Redis support किस package के माध्यम से उपलब्ध है?
[A] Predis / PhpRedis
[B] PHPMailer
[C] Doctrine
[D] Monolog
617. Which package provides Redis support in Laravel?
[A] Predis / PhpRedis
[B] PHPMailer
[C] Doctrine
[D] Monolog
सही उत्तर: Predis / PhpRedis
व्याख्या: Redis connectivity के लिए।
Correct Answer: Predis / PhpRedis
Explanation: Used for Redis connectivity.
618. Cache::remember() method का उद्देश्य क्या है?
[A] Cache Or Store Data
[B] Delete Cache
[C] Encrypt Cache
[D] Refresh Sessions
618. What is the purpose of Cache::remember()?
[A] Cache or store data
[B] Delete cache
[C] Encrypt cache
[D] Refresh sessions
सही उत्तर: Cache Or Store Data
व्याख्या: Data cache में उपलब्ध न होने पर store करता है।
Correct Answer: Cache or store data
Explanation: Stores data if not already cached.
619. Laravel Scheduler का उद्देश्य क्या है?
[A] Automate Scheduled Tasks
[B] Generate Routes
[C] Compile Assets
[D] Manage Sessions
619. What is the purpose of Laravel Scheduler?
[A] Automate scheduled tasks
[B] Generate routes
[C] Compile assets
[D] Manage sessions
सही उत्तर: Automate Scheduled Tasks
व्याख्या: Cron jobs को manage करना आसान बनाता है।
Correct Answer: Automate scheduled tasks
Explanation: Makes cron job management easier.
620. Scheduled command define करने के लिए कौन-सी file उपयोग होती है?
[A] app/Console/Kernel.php
[B] routes/web.php
[C] config/app.php
[D] bootstrap/app.php
620. Which file is used to define scheduled commands?
[A] app/Console/Kernel.php
[B] routes/web.php
[C] config/app.php
[D] bootstrap/app.php
सही उत्तर: app/Console/Kernel.php
व्याख्या: Task scheduling यहीं configure होती है।
Correct Answer: app/Console/Kernel.php
Explanation: Task scheduling is configured here.