Professional Documents
Culture Documents
MCQ Laravel
MCQ Laravel
Margon Stan
Taylor Otwell
Samsy Twig
None of these
None of these
model
controller
route
public
models
public
views
controllers
None of these
php artisan up
None of these
Bootstrap dependencies
Laravel dependencies
Composer dependencies
Auth::check()
Auth::user()
Auth::authenticated()
Auth::signout();
Auth::logout();
Auth::forgot();
None of these
Auth::logoutOtherDevices($currentPassword);
Auth::logoutAllDevices($currentPassword);
Auth::logout($currentPassword);
None of these
$hashed = Hash::create('has-text');
$hashed = Hash::all('has-text');
$hashed = Hash::make('has-text');
None of these
15
None of these
Correct Answer - 3. 4
Beanstalkd
Redis
SQS
MongoDB
16. How can you remove all failed jobs from the queue in Laravel?
Supervisor
Beanstalkd
Redis
Starts a worker process that listens for new jobs on the queue and
processes them
Correct Answer - 3. Starts a worker process that listens for new jobs on
the queue and processes them
Starts a worker process that listens for new jobs on the queue and
processes them
18. What are the ways to get the data from database in laravel?
Query Builder
Eloquent ORM
Both A & B
None of these
None of these
Check Answer
Correct Answer - 1. php artisan cache:clear
controller
route
public
Check Answer
Correct Answer - 4. Public
models
public
views
controllers
Check Answer
Correct Answer - 2. Public
Check Answer
Correct Answer - 4. php artisan config:cache
None of these
Check Answer
Correct Answer - 1. php artisan down
php artisan up
None of these
Check Answer
Correct Answer - 1. php artisan up
Bootstrap dependencies
Laravel dependencies
Composer dependencies
Check Answer
Correct Answer - 3. Composer dependencies
Auth::check()
Auth::user()
Auth::authenticated()
Check Answer
Correct Answer - 1. Auth::check()
Auth::signout();
Auth::logout();
Auth::forgot();
None of these
Check Answer
Correct Answer - 2. Auth::logout();
Auth::logoutOtherDevices($currentPassword);
Auth::logoutAllDevices($currentPassword);
Auth::logout($currentPassword);
None of these
Check Answer
Correct Answer - 1. Auth::logoutOtherDevices($currentPassword);
$hashed = Hash::create('has-text');
$hashed = Hash::all('has-text');
$hashed = Hash::make('has-text');
None of these
Check Answer
Correct Answer - 3. $hashed = Hash::make('has-text');
15
None of these
Check Answer
Correct Answer - 3. 4
13. What is the command to start a worker process in Laravel?
Check Answer
Correct Answer - 2. php artisan queue:work
Check Answer
Correct Answer - 1. php artisan queue:retry
Beanstalkd
Redis
SQS
MongoDB
Check Answer
Correct Answer - 4. MongoDB
16. How can you remove all failed jobs from the queue in Laravel?
Check Answer
Correct Answer - 1. php artisan queue:flush
Horizon
Supervisor
Beanstalkd
Redis
Check Answer
Correct Answer - 1. Horizon
Starts a worker process that listens for new jobs on the queue and processes
them
Check Answer
Correct Answer - 3. Starts a worker process that listens for new jobs on the
queue and processes them
Starts a worker process that listens for new jobs on the queue and processes
them
Check Answer
Correct Answer - 2. Restarts the worker process
20. Which of the following is not a way to add jobs to a queue in Laravel?
None of these
Check Answer
Correct Answer - 1. php artisan cache:clear
2. In which folder .htaccess file is located in laravel?
model
controller
route
public
Check Answer
Correct Answer - 4. public
3. In which directory robots.txt file is located?
models
public
views
controllers
Check Answer
Correct Answer - 2. public
4. Which command is used to cache configuration in laravel?
php artisan cache:everything
Check Answer
Correct Answer - 4. php artisan config:cache
5. Command to enable maintenance mode in laravel?
None of these
Check Answer
Correct Answer - 1. php artisan down
6. Command to Disable Maintenance Mode in laravel?
php artisan up
None of these
Check Answer
Correct Answer - 1. php artisan up
7. The vendor directory contains in laravel?
Bootstrap dependencies
Laravel dependencies
Composer dependencies
Check Answer
Correct Answer - 3. Composer dependencies
Auth::check()
Auth::user()
Auth::authenticated()
Check Answer
Correct Answer - 1. Auth::check()
Auth::signout();
Auth::logout();
Auth::forgot();
None of these
Check Answer
Correct Answer - 2. Auth::logout();
Auth::logoutOtherDevices($currentPassword);
Auth::logoutAllDevices($currentPassword);
Auth::logout($currentPassword);
None of these
Check Answer
Correct Answer - 1. Auth::logoutOtherDevices($currentPassword);
$hashed = Hash::create('has-text');
$hashed = Hash::all('has-text');
$hashed = Hash::make('has-text');
None of these
Check Answer
Correct Answer - 3. $hashed = Hash::make('has-text');
12. What will be the output of following code?
print(len(["hello",21, 10, 19]))
15
None of these
Check Answer
Correct Answer - 3. 4
Check Answer
Correct Answer - 2. php artisan queue:work
Check Answer
Correct Answer - 1. php artisan queue:retry
Beanstalkd
Redis
SQS
MongoDB
16. How can you remove all failed jobs from the queue in Laravel?
Check Answer
Correct Answer - 1. php artisan queue:flush
17. Which of the following is a queue manager in Laravel?
Horizon
Supervisor
Beanstalkd
Redis
Starts a worker process that listens for new jobs on the queue and processes
them
Check Answer
Correct Answer - 3. Starts a worker process that listens for new jobs on the
queue and processes them
Starts a worker process that listens for new jobs on the queue and processes
them
Check Answer
Correct Answer - 2. Restarts the worker process
20. Which of the following is not a way to add jobs to a queue in Laravel?
1. How can you create a migration for the failed jobs database table in
Laravel?
2. What is the command to remove a failed job from the queue in Laravel?