Laravel/Laravel MCQ (Multiple Choice Question) Set 2 Sample Test,Sample questions

Question:
 What does ORM stands for in laravel?

1.object-related Modifier

2.overloaded-relational Mapping

3.object-Rotational Mechanisim

4.object-relational Mapping


Question:
 What is Node JS?

1.Different version of the normal JavaScript

2.Special type of JavaScript language

3.JavaScript runtime environment that executes JavaScript code

4.None of These


Question:
 Why does Laravel use the Blade Template Engine?

1.As a template

2.To simplify programming

3.For the view in MVC

4.For fun


Question:
After running “artisan down”, The project will show the maintenance page. What would be HTTP Status return Code?

1.298

2.503

3.400

4.254


Question:
Bootstrap directory in Laravel is used to__________

1.Initialize a Laraval application

2.Call laravel library functions

3.Load laravel classes and models

4.Load the configuration files


Question:
Composer is a tool for ______ in PHP.

1.Configuration

2.Dependency management

3.Interpolation

4.None of These


Question:
How to check current laravel version install your system?

1.php artisan check –version

2.php artisan make –version

3.php artisan –version

4.none of the above


Question:
How to get current action name in Laravel?

1.request()->DB->getActionMethod()

2.request()->route()->getActionMethod()

3.request()->getActionMethod()

4.None of These


Question:
Interpolation of variable in laravel done using

1.{{}}

2.compact

3.helpers

4.None


Question:
The vendor directory contains

1.Assets

2.Laravel Framework code

3.Third-party code

4.Configuration files


Question:
View files in Laravel end in________–

1..blade.php

2..vue

3..blade

4..php


Question:
What is Laravel?

1.Programming language

2.PHP framework

3.Code generator

4.None of These


Question:
What is the purpose of Laravel Blade Template Engine?

1.Make things harder

2.Increase workload for students

3.Beautify Laravel

4.Makes writing syntax easy and readable


Question:
What is the purpose of learning Web Programming?

1.To install computer programs

2.To create computer parts

3.To design the computer outlook

4.To talk to computers


Question:
What type of way does Laravel use to get data from a database ?

1.Eloquent ORM and Query Builder

2.Eloquent ORM

3.Query Builder

4.None of the above


Question:
When was Laravel first released?

1.June 2011

2.June 2007

3.June 2009

4.None of These


Question:
Where are all the Laravel Models stored at ?

1.Inside Laravel database

2.Within a server

3.Main app directory

4.None of the above


Question:
Where do we need to set database connection in Laravel?

1.Config.php

2.Setting.php

3.In seed files

4..ENV file


Question:
Where is the routing file located in Laravel ?

1.urls/

2.routes/

3.vendors/

4.app/Http/


Question:
Which class is used in Laravel to handle exceptions?

1.AppExceptionHandler

2.AppExceptionsHandler

3.AppExceptionsHandle

4.None of these


Question:
Which command is used to create migrations in Laravel?

1.php artisan make:migration create_users_table

2.php artisan migration create_users_table

3.php artisan make:migrate create_users_table

4.None of These


Question:
Which command is used to start laravel server?

1.php artisan project_name

2.artisan start-server

3.php artisan serve

4.php artisan start php


Question:
Which of the following function in Laravel checks that the desired table is exists in the database or not?

1.hashTable()

2.hasTab()

3.hasTable()

4. None


Question:
Which of the following methods are used in Database Migrations classes?

1.run() and delete()

2.save() and update()

3.execute() and rollback()

4.up() and down()


Question:
Which one Laravel command line interface?

1.Composer

2.Php artisan

3.Git

4.CLI


Question:
Which one of the following command is used to create middleware in Laravel?

1.php artisan make: middleware

2.php arti make: middleware

3.php artisan: middleware

4.None of the above


More MCQS

  1. Laravel MCQ (Multiple Choice Question) Set 1
  2. Laravel MCQ (Multiple Choice Question) Set 2
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!