Laravel MCQ Questions

11. Command line interface used in Laravel is called?

A. composer
B. Artisan
C. Symphony
D. ORM

View Answer


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

A. Queues
B. Cron
C. Redis
D. Command Bus

View Answer


13. Which command is used to create Middleware?

A. php make:middleware <middleware-name>
B. php artisan middleware <middleware-name>
C. php middleware <middleware-name>
D. php artisan make:middleware <middleware-name>

View Answer


14. The _______________ will run on every HTTP request of the application

A. Global Middleware
B. Route Middleware
C. Both A and B
D. None of the above

View Answer


15. Which keyword allows the developers to shorten the namespace?

A. extend
B. use
C. artisan
D. class

View Answer


16. Execute the below command to create a new controller called?

php artisan make:controller UriController –plain

A. UrlController
B. pathController
C. UriController
D. routeController

View Answer


17. The cookie can be attached to the response using the ?

A. isCookie() method
B. withCookie() method
C. getCookie() method
D. putCookie() method

View Answer


18. By default, all cookies generated by Laravel are encrypted and signed so that they can not be modified or read by the client.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


19. In MVC framework, the letter "V" stands for Value. 

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


20. Laravel uses the Blade @extends directive for defining the child elements

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer





Discussion


* You must be logged in to add comment.