MVC Programming Laravel | MCQs | SET-II

CoderIndeed
12 minute read
0
1. Laravel is a ____ framework?
A. PHP
B. JavaScript
C. Python
D. React
Answer: A) PHP
Explanation: Laravel is a PHP framework.

2. Does Laravel follow the MVC concept?
A. Yes
B. No
Answer: A) Yes
Explanation: Laravel is powerful MVC PHP framework.

3. Does Laravel follow the object-oriented approach?
A. Yes
B. No
Answer: A) Yes
Explanation: Laravel follows the object-oriented approach.

4. Does PHP follow the object-oriented approach?
A. No
B. Yes
Answer: B) Yes
Explanation: Yes, PHP is object-oriented programming language.

5. Who developed Laravel?
A. Yes
B. Taylor Otwell
C. Tim Berners-Lee
D. Guillermo Rauch
E. Brendan Eich
Answer: B) Taylor Otwell
Explanation: Laravel is developed by Taylor Otwell.

6. Laravel is ____ framework?
A. Frontend
B. Backend
Answer: B) Backend
Explanation: Laravel is a backend framework.

7. Is Laravel an open-source?
A. Yes
B. No
Answer: A) Yes
Explanation: Laravel is an open-source framework.

8. All dependencies are specified in the ____ file, which is located in the
source folder?
A. Root
B. Config
C. composer.json
Answer: C) composer.json
Explanation: All dependencies are specified in the composer.json file, which is located in the source folder.

9. Command line interface used in Laravel is called ____.
A. Command Prompt
B. CLI
C. Composer
D. Artisan
Answer: D) Artisan
Explanation: Command line interface used in Laravel is called Artisan.

10. How many built-in libraries does Laravel provides?
A. 30
B. 20
C. 100
D. 50
Answer: B) 20
Explanation: Laravel provides 20 built-in libraries.

11. What is the name of the ORM used in Laravel?
A. Artisan
B. Composer
C. Hibernate
D. Eloquent
Answer: D) Eloquent
Explanation: Eloquent is an object relational mapper (ORM) that comes with the Laravel framework by default.

12. The database definitions and structure are kept in PHP code using ____.
A. Redis
B. Template engine
C. Schema Builder
Answer: C) Schema Builder
Explanation: The database definitions and structure are kept in PHP code using Schema Builder.

13. Which template language does Laravel use?
A. Blade
B. Cron
C. Template engine
D. Command Bus
Answer: A) Blade
Explanation: Laravel has a simple yet powerful templating engine called Blade.

14. ____ installed on your system before you install Laravel.
A. Browser
B. Composer
C. Eloquent
D. None of the above
Answer: B) Composer
Explanation: Composer installed on your system before you install Laravel.

15. Which folder in Laravel includes the entire source code of the project?
A. Events
B. Public
C. App
D. Console
Answer: C) App
Explanation: App includes the entire source code of the project. E N T

16. ____ contains the artisan commands required by Laravel.
A. Events
B. Public
C. Jobs
D. Console
Answer: D) Console
Explanation: Console contains the artisan commands required by Laravel.

17. What is the extension of the folder which includes all the events for the project?
A. .php
B. .txt
C. .xml
D. .laravel
Answer: A) .php
Explanation: .php is the extension of the folder which includes all the events for the project.

18. What is the name of the file which handles all the exceptions?
A. Exception_methods.php
B. Handle.php
C. Exceptions.php
Answer: B) Handle.php
Explanation: handle.php is the name of the file which handles all the exceptions.

19. Which folder in Laravel contains model, controllers and views defined
for the specific directories?
A. Events
B. Public
C. Jobs
D. Http
Answer: D) Http
Explanation: Http folder in Laravel contains model, controllers and views defined for the specific directories.

20. The ____ directory stores the actions that have been queued for the
Laravel application?
A. Events
B. Public
C. Jobs
D. Http
Answer: C) Jobs
Explanation: The Jobs directory stores the actions that have been queued for the Laravel
application.
Tags

Post a Comment

0Comments

Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Check Now
Accept !