PHP Laravel MCQ Interview Questions and Answers (2023) - McqProf
πJoin Us Laravel MCQ Quiz Online Test
Best Multiple Choice Questions on Laravel MCQ Answers check your basic knowledge With our free online test popular PHP framework!
What is the command to create a new Laravel project?
a) laravel new
b) create-laravel
c) new-project
d) laravel create
What is the default database used in Laravel?
a) MySQL
b) MongoDB
c) PostgreSQL
d) SQLite
What is the command to run migrations in Laravel?
a) php migrate
b) php artisan migrate
c) php run-migrations
d) laravel migrate
What is the purpose of the .env file in Laravel?
a) It stores environment specific configuration settings
b) It contains the project’s dependencies
c) It holds the project’s route definitions
d) It stores the project’s version number
What is the command to generate a new controller in Laravel?
a) php create-controller
b) php make:controller
c) laravel generate:controller
d) laravel make controller
What is the name of the command that is used to run tasks in the background in Laravel?
a) php background-task
b) php task-manager
c) php artisan queue:work
d) php run-task
What is the name of the command that is used to generate a new model in Laravel?
a) php make:model
b) php create-model
c) php generate:model
d) laravel make model
What is the command to start the built-in PHP development server in Laravel?
a) php start-server
b) php serve
c) php -S localhost:8000
d) laravel serve
What is the name of the class that is used to handle HTTP requests in Laravel?
a) Request
b) Controller
c) Router
d) Dispatcher
What is the command to generate a new middleware in Laravel?
a) php make:middleware
b) php create-middleware
c) laravel generate:middleware
d) laravel make middleware
SEE || MORE || MCQ || Questions
Education Funda
Stay Connected π
Thanks
Comments
Post a Comment