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

Posted Date:-2022-08-08 11:36:26


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

1.True

2.False

3.Can be true or false

4.Can not say

Posted Date:-2022-08-08 11:41:48


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

Posted Date:-2022-08-08 11:40:07


Question:
Command line interface used in Laravel is called?

1.composer

2.Artisan

3.Symphony

4.ORM

Posted Date:-2022-08-08 11:29:26


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

Posted Date:-2022-08-08 11:24:51


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

1.2

2.4

3.1

4.3

Posted Date:-2022-08-08 11:25:28


Question:
How many types of Middleware in Laravel?

1.2

2.3

3.4

4.6

Posted Date:-2022-08-08 11:21:40


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

1.Cookie

2.Configuration

3.command prompt

4.Controller

Posted Date:-2022-08-08 11:23:37


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

Posted Date:-2022-08-08 11:42:41


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

1.Queues

2.Cron

3.Redis

4.Command Bus

Posted Date:-2022-08-08 11:30:51


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

1.Eloquent

2.Query Builder

3.Schema Builder

4.Blade Template

Posted Date:-2022-08-08 11:20:07


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

1.isCookie() method

2.withCookie() method

3.getCookie() method

4.putCookie() method

Posted Date:-2022-08-08 11:37:54


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

Posted Date:-2022-08-08 11:34:27


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>

Posted Date:-2022-08-08 11:32:41


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

1.extend

2.use

3.artisan

4.class

Posted Date:-2022-08-08 11:35:32


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

1. application.json

2.json

3.routes

4.test

Posted Date:-2022-08-08 11:26:29


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

Posted Date:-2022-08-08 11:19:00


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

Posted Date:-2022-08-08 11:27:29


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

1.Routing

2.Middleware

3.Namespaces

4.Request

Posted Date:-2022-08-08 11:21:01


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

Posted Date:-2022-08-08 11:22:29


More MCQS

  1. PHP Yii MCQ Questions & Answers
  2. PHP Laravel MCQ
  3. PHP Symfony MCQ
  4. PHP CodeIgniter MCQ
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website 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!