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