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