πŸ§ͺ Yii PHP web application framework MCQ Quiz Hub

PHP Laravel MCQ

Choose a topic to test your knowledge and improve your Yii PHP web application framework skills

Which of the following is true about Laravel?





βœ… Correct Answer: 4

ORM (Object Relational Mapper) and ActiveRecord implementation called?





βœ… Correct Answer: 1

____________ acts as a bridge between a request and a response.





βœ… Correct Answer: 2

How many types of Middleware in Laravel?





βœ… Correct Answer: 1

_____________ can be defined as a class of elements in which each element has a unique name to that associated class.





βœ… Correct Answer: 3

In the MVC framework, the letter 'C' stands for?





βœ… Correct Answer: 4

Cookie can be created by global cookie helper of Laravel.





βœ… Correct Answer: 1

How many arguments cookie() method will take?





βœ… Correct Answer: 4

Which method will automatically convert the array into appropriate json response?





βœ… Correct Answer: 2

Which version introduces the concept of using Blade?





βœ… Correct Answer: 4

Command line interface used in Laravel is called?





βœ… Correct Answer: 2

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





βœ… Correct Answer: 3

Which command is used to create Middleware?





βœ… Correct Answer: 4

The _______________ will run on every HTTP request of the application





βœ… Correct Answer: 1

Which keyword allows the developers to shorten the namespace?





βœ… Correct Answer: 2

Execute the below command to create a new controller called? php artisan make:controller UriController –plain





βœ… Correct Answer: 3

The cookie can be attached to the response using the ?





βœ… Correct Answer: 2

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 2

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





βœ… Correct Answer: 1