Laravel MCQ Multiple Choice Questions
Laravel MCQ Multiple Choice Questions
com
Laravel MCQ Quiz & Test
A. average()
B. avg()
C. median()
D. avg_val()
Q3. Which artisan command is used to remove the compiled class file.
A. clear-compiled
B. clear compiled
C. compiled:clear
D. clear:all
Q4. Which method breaks the collection into multiple, smaller collections of a given size
A. split()
B. chunk()
C. explode()
D. break()
A. cache:flush
B. cache:clear
C. cache:forget
D. cache:remove
A. app/Http/
B. routes/
C. urls/
D. vendors/
A. .blade.php
B. .php
C. .vue
D. .blade
Q9. Which of following command is used to create a symbolic link from "public/storage"
directory to "storage/app/public".
A. storage:link
B. link:public
C. link:storage
D. storage:link public/storage
A. app
B. public
C. config
D. storage
A. compact
B. {{}}
C. helpers
Q14. What is the HTTP Status Code for your website. When it is down for maintenance.
A. 501
B. 200
C. 400
D. 503
A. Printing value
B. For string translation
A. config.php
B. setting.php
C. In seed files
D. .ENV file
Q17. What is the minimum PHP version required to install Laravel 5.3?
A. 7.1
B. 5.6.4
C. 5.3.2
D. 5.4.3
A. $request->db->session('key', 'value');
B. $request->session()->set('key', 'value');
C. $request->session()->put('key', 'value');
D. None of These
A. Rasmus Lerdorf
B. Taylor Otwell
C. James Gosling
D. Guido van Rossum
Q20. How to create a controller in laravel by cmd?
A. $db
B. $app
C. $cache
D. $request