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