Laravel Fresher Important Points to Remember. No cell phones or other secondary devices in the room or test area Your desk/table must be clear or any materials except your test-taking device No one else can be in the room with you No talking No dual screens/monitors No use of additional applications or internet 1 / 40 How to set a session data in Laravel? $ request – > session ( ) – > put ( ‘ key ’, ‘ value ’ ) ; $ request – > db – > session ( ‘ key ’ , ‘ value ’ ) ; $ request – > session ( ) – > set ( ‘ key ’ , ‘ value ’ ) ; none 2 / 40 __ ( ) in laravel used for For string translation Printing value 3 / 40 After running “ artisan down ”, The project will show the maintenance page. What would be HTTP Status return Code? 254 503 400 298 4 / 40 Bootstrap directory in Laravel is used to__________ Call laravel library functions Load the configuration files Load laravel classes and models Initialize a Laraval application 5 / 40 Why does Laravel use the Blade Template Engine? As a template For fun To simplify programming For the view in MVC 6 / 40 Interpolation of variable in laravel done using { { } } helpers None compact 7 / 40 Which command is used to start laravel server? php artisan start php php artisan project _ name artisan start – server php artisan serve 8 / 40 What does ORM stands for in laravel? overloaded – relational Mapping object – Rotational Mechanisim object – relational Mapping object – related Modifier 9 / 40 What type of way does Laravel use to get data from a database ? None of the above Eloquent ORM and Query Builder Eloquent ORM Query Builder 10 / 40 View files in Laravel end in________ – . blade . php . php . vue . blade 11 / 40 The vendor directory contains Assets Configuration files Third – party code Laravel Framework code 12 / 40 Where do we need to set database connection in Laravel? Config . php In seed files . ENV file Setting . php 13 / 40 Which of the following function is used to sort array in descending order? sort ( ) dsort ( ) asort ( ) rsort ( ) 14 / 40 What is Node JS? Java Script runtime environment that executes Java Script code Different version of the normal Java Script Special type of Java Script language None 15 / 40 What is the purpose of Laravel Blade Template Engine? Beautify Laravel Increase workload for students Make things harder Makes writing syntax easy and readable 16 / 40 Among echo and print, which is faster? print None echo Both have the same speed 17 / 40 Among the following functions, choose the one which accepts any number of parameters. getargv ( ) func _ get _ argv ( ) get argc ( ) func _ get _ args ( ) 18 / 40 Who developed Laravel? Taylor Otwell James Gosling Guido van Rossum Rasmus Lerdorf 19 / 40 Which of the following function in Laravel checks that the desired table is exists in the database or not? hashTable ( ) hasTable ( ) hasTab ( ) None 20 / 40 For what do the . env is used? None of These For tracking vendors For running cron jobs For setting environment variables 21 / 40 Which method returns the average value of a given key ? avg ( ) average ( ) median ( ) avg _ val ( ) 22 / 40 How to get current action name in Laravel? request ( ) – > route ( ) – > getActionMethod ( ) request ( ) – > getActionMethod ( ) none of the above request ( ) – > DB – > getActionMethod ( ) 23 / 40 When was Laravel first released? June 2009 June 2007 June 2011 None 24 / 40 What is Laravel ? Code generator PHP framework Programming language none of the above 25 / 40 Which one Laravel command line interface? Composer Php artisan Git CLI 26 / 40 In PHP, variable names must start with which of the following. No numbers Underscore Letters All of the above 27 / 40 Composer is a tool for ______ in PHP. Configuration None of the above Dependency management Interpolation 28 / 40 Where are all the Laravel Models stored at ? Main app directory Inside Laravel database Within a server None of the above 29 / 40 Which class is used in Laravel to handle exceptions? App \ Exceptions \ Handler App \ Exceptions \ Handle None of above App \ Exception \ Handler 30 / 40 How to define a mutator? setAttribute ( ‘ name ’ ) setNameAttribute ( ) setName Value ( ) setName ( ) 31 / 40 What is the minimum PHP version required to install Laravel 5.3? 7 . 1 5.3.2 5.6.4 5.4.3 32 / 40 Which artisan command is used to remove the compiled class file. clear – compiled clear : all clear compiled compiled : clear 33 / 40 Which one of the following command is used to create middleware in Laravel? php artisan : middleware php arti make : middleware php artisan make : middleware none of the above 34 / 40 Which of the following methods are used in Database Migrations classes? up ( ) and down ( ) save ( ) and update ( ) execute ( ) and rollback ( ) run ( ) and delete ( ) 35 / 40 Where is the routing file located in Laravel ? urls / routes / app / Http / vendors / 36 / 40 How to check current laravel version install your system? php artisan – version none of the above php artisan check – version php artisan make – version 37 / 40 What is the purpose of learning Web Programming? To design the computer outlook To install computer programs To talk to computers To create computer parts 38 / 40 Which command is used to create migrations in Laravel? php artisan make:migrate create _ users _ table php artisan migration create _ users _ table none php artisan make : migration create _ users _ table 39 / 40 Find the output of the code below: < ? PHP ECHO CHR ( 52 ) ; ? > 1 2 3 4 40 / 40 How to create a controller in laravel by cmd? php artisan make:request controller _ name create php artisan make:controller – plain php artisan make:controller generate php artisan make: generate controller contoller_name 0%