Unit1 - Subjective Questions

INT221 • Practice Questions with Detailed Answers

1

Explain the MVC architecture and describe the role of each of its three components.

2

What is the Laravel Framework? Briefly list five of its key features.

3

Describe the Request Lifecycle in a Laravel application with respect to the MVC pattern.

4

What is Composer? Explain its significance in modern PHP development.

5

Differentiate between composer.json and composer.lock files.

6

Write the command to install the latest version of Laravel via Composer and explain the command parameters.

7

What are the server requirements for installing the latest Laravel framework? (Mention at least 4 PHP extensions).

8

Provide a detailed overview of the Laravel Directory Structure. Explain the purpose of any five root directories.

9

Explain the purpose of the routes directory in Laravel and list the default route files found within it.

10

What is the difference between the public directory and the resources directory in Laravel?

11

What is Artisan in Laravel? How is it accessed?

12

List five common Artisan commands and explain their usage.

13

How does Blade Templating facilitate MVC development in Laravel?

14

Explain the role of the .env file in a Laravel application.

15

What is Eloquent ORM? How does it map databases to objects?

16

Describe the steps to install Composer globally on a Windows machine.

17

What is the purpose of the php artisan tinker command?

18

Explain the concept of Namespace in the context of Laravel's application structure.

19

Compare MVC with Flat PHP (Spaghetti Code) approaches.

20

How does Laravel handle application Maintenance Mode using Artisan?