Q.1
What type of way does Laravel use to get data from a database ?
  • a) Eloquent ORM
  • b) Query Builder
  • c) Eloquent ORM and Query Builder
  • d) None of the above
Q.2
What is the purpose of learning Web Programming?
  • a) To talk to computers
  • b) To create computer parts
  • c) To design the computer outlook
  • d) To install computer programs
Q.3
The vendor directory contains
  • Laravel Framework code
  • Assets
  • Third-party code
  • Configuration files
Q.4
Which of the following methods are used in Database Migrations classes?
  • execute() and rollback()
  • save() and update()
  • up() and down()
  • run() and delete()
Q.5
Where are all the Laravel Models stored at ?
  • Inside Laravel database
  • Within a server
  • Main app directory
  • None of the above
Q.6
What is the purpose of Laravel Blade Template Engine?
  • Makes writing syntax easy and readable
  • b) Beautify Laravel
  • Increase workload for students
  • Make things harder
Q.7
Which class is used in Laravel to handle exceptions?
  • App\Exceptions\Handler
  • App\Exception\Handler
  • App\Exceptions\Handle
  • None of the above
Q.8
How to get current action name in Laravel?
  • request()->getActionMethod()
  • request()->route()->getActionMethod()
  • request()->DB->getActionMethod()
  • None of the above
Q.9
When was Laravel first released?
  • June 2011
  • June 2009
  • June 2007
  • All are Correct
Q.10
What does ORM stands for in laravel?
  • Object-Rotational Mechanisim
  • Overloaded-relational Mapping
  • Object-relational Mapping
  • Object-related Modifier
Q.11
Which command is used to create migrations in Laravel?
  • php artisan make:migration create_users_table
  • php artisan make:migrate create_users_table
  • php artisan migration create_users_table
  • All are Correct
Q.12
Where is routing file located in Laravel?
  • routes/
  • public/
  • view/
  • None of the above
Q.13
Which command is used to create a new project in Laravel?
  • php composer.phar create-project --pref-dist laravel/laravel lar-project "5.7.*"
  • php composer.phar create-project --prefer-dist laravel/laravel lar-project "5.7.*"
  • php compose.phar create-project --prefer-dist laravel/laravel lar-project "5.7.*"
  • php composer.phar create-project --prefer-di laravel/laravel lar-project "5.7.*"
Q.14
How to define an mutator in Laravel?
  • setNameAttribute method inside model
  • setNameAttribute method inside controller
  • setMutator method inside controller
  • All of above
Q.15
Which of following command is used to remove the compiled class file in Laravel?
  • php artisan clear-compiled
  • php artisan down
  • php artisan clear-class
  • php artisan inspire
Q.16
Which of following Collection method returns all records from Laravel collection?
  • ->get()
  • whereAll()
  • ->where()
  • ->all()
Q.17
Which of the following is a root directory in laravel
  • public
  • app
  • bootstrap
  • vendor
Q.18
What is the purpose of a PHP framework?
  • a) Speed up development process
  • b) Coding
  • c) Send or receive cookies
  • d) Understand programming language
Q.19
Which method is used in Laravel to method to check request is ajax or not?
  • $request->ajaxRun()
  • $request->ajaxs()
  • $request->ajax()
  • None of the above
Q.20
What is the feature of Eloquent ORM ?
  • Flexible
  • Timestamps
  • A lot of use methods
  • All of the above
0 h : 0 m : 1 s