PHP Laravel MCQ Questions & Answers

Laravel MCQs : This section focuses on "Laravel" PHP Framework. These Multiple Choice Questions (MCQ) should be practiced to improve the PHP Laravel skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.

1. Which of the following is true about Laravel?

A. Laravel is an open-source PHP framework
B. Laravel is robust
C. Laravel is easy to understand
D. All of the above

View Answer

2. ORM (Object Relational Mapper) and ActiveRecord implementation called?

A. Eloquent
B. Query Builder
C. Schema Builder
D. Blade Template

View Answer

3. ______________ acts as a bridge between a request and a response.

A. Routing
B. Middleware
C. Namespaces
D. Request

View Answer

4. How many types of Middleware in Laravel?

A. 2
B. 3
C. 4
D. 5

View Answer

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

A. Routing
B. Cookie
C. Namespaces
D. Request

View Answer

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

A. Cookie
B. Configuration
C. command prompt
D. Controller

View Answer

7. Cookie can be created by global cookie helper of Laravel.

C. Can be true or false
D. Can not say

View Answer

8. How many arguments cookie() method will take?

A. 2
B. 4
C. 1
D. 3

View Answer

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

A. application.json
B. json
C. routes
D. test

View Answer

10. Which version introduces the concept of using Blade?

A. Laravel 2.1
B. Laravel 3.1
C. Laravel 4.1
D. Laravel 5.1

View Answer


* You must be logged in to add comment.