Home Programming Kids Programming Hardware & Software Hardware & Networking APP security Software Education Kids Study MCQS Download OTHERS Login

Laravel MCQ Question and Answer

Categories: MCQS

Laravel MCQ Question and Answer

 

1. Bootstrap directory in Laravel is used to

  1. Initialize a Laraval application
  2. Call laravel library functions
  3. Load laravel classes and models
  4. Load the configuration files

Answer: A

 

2. How to create a controller in laravel by cmd?

  1. php artisan make:controller generate
  2. php artisan make: generate controller contoller_name
  3. php artisan make:controller –plain
  4. php artisan make:request controller_name create

Answer:  C

 

3. Which of the following is true about Laravel?

  1. Laravel is an open-source PHP framework
  2. Laravel is robust
  3. Laravel is easy to understand
  4. All of the above

Answer:  D

 

4. Command line interface used in Laravel is called?

  1. composer
  2. Artisan
  3. Symphony
  4. ORM

Answer:  B

 

5. Which artisan command is used to remove the compiled class file.

  1. clear-compiled
  2. clear compiled
  3. compiled:clear
  4. clear:all

Answer:  D

 

6. Laravel uses to connect to an existing session and general-purpose cache

  1. Queues
  2. Cron
  3. Redis
  4. Command Bus

Answer:  C

 

7. Which command is used to create Middleware?

  1. php make:middleware <middleware-name>
  2. php artisan middleware <middleware-name>
  3. php middleware <middleware-name>
  4. php artisan make:middleware <middleware-name>

Answer:  D

 

8. The vendor directory contains

  1. Laravel Framework code
  2. Assets
  3. Third-party code
  4. Configuration files

Answer:  C

 

9. Where is the routing file located in Laravel?

  1. app/Http/
  2. routes/
  3. urls/
  4. vendors/

Answer:  B

 

10. View files in Laravel end in

  1. .blade.php
  2. .php
  3. .vue
  4. .blade

Answer: A

Laravel MCQ Question and Answer