MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
Laravel
Quiz 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Q.1
What is Node JS?
a) Special type of JavaScript language
JavaScript runtime environment that executes JavaScript code
Different version of the normal JavaScript
All of the above
Q.2
Who developed Laravel?
Rasmus Lerdorf
Taylor Otwell
James Gosling
Guido van Rossum
Q.3
After running "artisan down", The project will show the maintenance page. What would be HTTP Status return Code?
503
400
501
None
Q.4
Composer is a tool for ______ in PHP.
Interpolation
configuration
dependency management
None of the above
Q.5
For what do the .env is used?
For setting environment variables
For running cron jobs
For tracking vendors
None of These
Q.6
Where do we need to set database connection in Laravel?
config.php
setting.php
In seed files
.ENV file
Q.7
Bootstrap directory in Laravel is used to
Initialize a Laraval application
Call laravel library functions
Load the configuration files
Load laravel classes and models
Q.8
Which one Laravel command line interface?
composer
php artisan
git
CLI
Q.9
How to create a controller in laravel by cmd?
php artisan make:controller generate
php artisan make:controller --plain
php artisan make:request controller_name create
php artisan make: generate controller contoller_name
Q.10
Interpolation of variable in laravel done using
compact
{{}}
helpers
All of above
Q.11
View files in Laravel end in
.blade.php
.php
.vue
.blade
Q.12
Which command is used to start laravel server?
php artisan serve
php artisan project_name
php artisan start php
artisan start-server
Q.13
Does Laravel Support Caching?
Yes
No
Q.14
Why does Laravel use the Blade Template Engine?
To simplify programming
As a template
For fun
For the view in MVC
Q.15
Which of the following function in Laravel checks that the desired table is exists in the database or not?
None of the above
hasTable()
hasTab()
hashTable()
Q.16
Where is the routing file located in Laravel ?
app/Http/
routes/
urls/
vendors/
Q.17
What is Laravel?
a) Programming language
b) PHP framework
c) Code generator
d) None of the above
Q.18
How to check current laravel version install your system?
php artisan check --version
php artisan make --version
php artisan --version
None of the above
Q.19
How to set a session data in Laravel?
$request->db->session('key', 'value');
$request->session()->set('key', 'value');
$request->session()->put('key', 'value');
None of These
Q.20
Which one of the follwing command is used to create middleware in Laravel?
php artisan make: middleware
php artisan: middleware
php arti make: middleware
None of the above
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page