LARAVEL Directory Structure MCQ
Laravel MCQ- Home
- Tutorials
- Laravel
- Directory Structure
- Multiple Choice Question
(1) .env file exist in ________ directory:
A) App
B) Root
C) Public
D) Storage
Explanation
In Laravel root folder contains .env file for configurations.
(2) Which of the following directory is not exist in root folder of Laravel ?
A) App
B) Resources
C) Public
D) Controllers
Explanation
Controller directory exist as sub directory of Laravel project. The path for this folder is root/app/http/controllers.
(3) All images and other resources are placed in:
A) Public Folder
B) Resource Folder
C) Image Folder
D) Root Folder
Explanation
All resources which may include js,css and image files are stored in public folder.
(4) What is path of controller files ?
A) root/app/
B) root/app/controller
C) root/app/http/controller
D) root/controller
Explanation
In Laravel all controller files are saved in root/app/http/controllers
(5) Which of the following directory is used to store compiled Laravel blade files ?
A) App
B) Resources
C) Storage
D) Public
Explanation
All compiled blade files are stored in root/storage/framework/views
(6) Where app directory exist in Laravel project ?
A) In Resource folder
B) At root folder
C) In Public folder
D) In Routes folder
Explanation
Laravel app folder/directory is saved in project root folder. There are also other sub directories in app directory, such as console, exceptions, http and providers.
(7) Which of the following directory is used to save laravel model files ?
A) app
B) resources
C) public
D) routes
Explanation
Laravel model files are placed in app directory.
(8) What is meant by Laravel directory structure ?
A) Programs Hierarchy
B) Folders Hierarchy
C) Icons Hierarchy
D) All
Explanation
Folders hierarchy refers to the directory structure used in operating sytems.
(9) Which of the following item refers to directory in operating systems ?
A) Program
B) Folder
C) File
D) Icon
Explanation
In many operating systems directory word is used for folders.