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