Yii PHP web application framework/PHP Laravel MCQ Sample Test,Sample questions

Question:
 Execute the below command to create a new controller called?

php artisan make:controller UriController –plain

1.UrlController

2.pathController

3.UriController

4.routeController


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

1.True

2.False

3.Can be true or false

4.Can not say


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

1.True

2.False

3.Can be true or false

4.Can not say


Question:
Command line interface used in Laravel is called?

1.composer

2.Artisan

3.Symphony

4.ORM


Question:
Cookie can be created by global cookie helper of Laravel.

1.TRUE

2.FALSE

3.Can be true or false

4.Can not say


Question:
How many arguments cookie() method will take?

1.2

2.4

3.1

4.3


Question:
How many types of Middleware in Laravel?

1.2

2.3

3.4

4.6


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

1.Cookie

2.Configuration

3.command prompt

4.Controller


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

1.TRUE

2.FALSE

3.Can be true or false

4.Can not say


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

1.Queues

2.Cron

3.Redis

4.Command Bus


Question:
ORM (Object Relational Mapper) and ActiveRecord implementation called?

1.Eloquent

2.Query Builder

3.Schema Builder

4.Blade Template


Question:
The cookie can be attached to the response using the ?

1.isCookie() method

2.withCookie() method

3.getCookie() method

4.putCookie() method


Question:
The _______________ will run on every HTTP request of the application

1.Global Middleware

2.Route Middleware

3.Both A and B

4.None of the above


Question:
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>


Question:
Which keyword allows the developers to shorten the namespace?

1.extend

2.use

3.artisan

4.class


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

1. application.json

2.json

3.routes

4.test


Question:
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


Question:
Which version introduces the concept of using Blade?

1.Laravel 2.1

2.Laravel 3.1

3.Laravel 4.1

4.Laravel 5.1


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

1.Routing

2.Middleware

3.Namespaces

4.Request


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

1.Routing

2.Cookie

3.Namespaces

4.Request


More MCQS

  1. PHP Yii MCQ Questions & Answers
  2. PHP Laravel MCQ
  3. PHP Symfony MCQ
  4. PHP CodeIgniter MCQ
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!