Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 1 MCQs Getting started with MVC Laravel framework

INT221 — Mvc Programming 50 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 50 answered 0 right 0 wrong , 50 left

  1. Question 1 of 50

    What does the acronym MVC stand for in software architecture?

  2. Question 2 of 50

    In the MVC architecture, which component is primarily responsible for managing the data logic and business rules?

  3. Question 3 of 50

    Which component of the MVC framework interacts directly with the user interface and displays data?

  4. Question 4 of 50

    Who represents the "Traffic Cop" in the MVC architecture, directing data flow between the Model and the View?

  5. Question 5 of 50

    If a user sends a request to an MVC application, what is the typical flow of execution?

  6. Question 6 of 50

    Which of the following is NOT a benefit of using the MVC framework?

  7. Question 7 of 50

    Who is the original creator of the Laravel framework?

  8. Question 8 of 50

    Laravel is built upon which underlying PHP framework components?

  9. Question 9 of 50

    What is the name of the built-in templating engine used in Laravel?

  10. Question 10 of 50

    Which feature in Laravel allows for an expressive, fluent way to interact with databases using Model classes?

  11. Question 11 of 50

    What is Composer in the context of PHP and Laravel development?

  12. Question 12 of 50

    Which file does Composer primarily use to list project dependencies?

  13. Question 13 of 50

    When installing Composer globally, which directory allows the composer command to be run from anywhere in the terminal?

  14. Question 14 of 50

    Which command is used to install the dependencies defined in composer.json for an existing project?

  15. Question 15 of 50

    What is the purpose of the composer.lock file?

  16. Question 16 of 50

    Which folder is automatically generated by Composer to store downloaded libraries?

  17. Question 17 of 50

    Which Composer command allows you to create a new Laravel project from the command line?

  18. Question 18 of 50

    If the Laravel Installer is globally installed, which command creates a new project?

  19. Question 19 of 50

    What is the minimum PHP version required for the latest major versions of Laravel (e.g., Laravel 10/11)?

  20. Question 20 of 50

    Which command is used to start the local development server provided by Laravel?

  21. Question 21 of 50

    In a standard Laravel directory structure, where is the entry point (index.php) located?

  22. Question 22 of 50

    Which directory contains the User.php model by default in a fresh Laravel installation?

  23. Question 23 of 50

    Where are the application's configuration files stored?

  24. Question 24 of 50

    Which directory holds the migration files, model factories, and seeds?

  25. Question 25 of 50

    In which directory would you find your uncompiled views (Blade templates) and raw assets (LESS, SASS, JS)?

  26. Question 26 of 50

    What is the primary purpose of the .env file in the project root?

  27. Question 27 of 50

    Which Artisan command generates the application key found in the .env file?

  28. Question 28 of 50

    Where are the Controller files located within the Laravel directory structure?

  29. Question 29 of 50

    Which file is responsible for defining web routes in a Laravel application?

  30. Question 30 of 50

    What is Artisan in Laravel?

  31. Question 31 of 50

    Which Artisan command allows you to view a list of all available commands?

  32. Question 32 of 50

    Which command creates a new Controller class named ProductController?

  33. Question 33 of 50

    To create a migration file for a database change, which command is used?

  34. Question 34 of 50

    Which Artisan command executes the pending database migrations?

  35. Question 35 of 50

    What does the php artisan tinker command do?

  36. Question 36 of 50

    Which directory contains the autoload.php file generated by Composer?

  37. Question 37 of 50

    What is the purpose of the storage/ directory?

  38. Question 38 of 50

    In the routes/ directory, what is api.php used for?

  39. Question 39 of 50

    Which Artisan command would you use to clear the application cache?

  40. Question 40 of 50

    Laravel uses PSR-4 autoloading. What does this primarily facilitate?

  41. Question 41 of 50

    What is the function of Middleware in Laravel?

  42. Question 42 of 50

    Which folder serves as the bootstrap location for loading the framework?

  43. Question 43 of 50

    Which command creates a Model and a Migration simultaneously?

  44. Question 44 of 50

    If you see a Whoops, looks like something went wrong page, what setting in .env controls the detail level of this error?

  45. Question 45 of 50

    The App namespace in Laravel usually maps to which directory?

  46. Question 46 of 50

    In MVC, if a logic calculation requires the formula , where should this calculation ideally reside?

  47. Question 47 of 50

    Which PHP extension is almost always required for Laravel to run (handling strings)?

  48. Question 48 of 50

    To put the application into maintenance mode, which Artisan command is used?

  49. Question 49 of 50

    Which directory in Laravel is generally meant to be writable by the web server?

  50. Question 50 of 50

    What is the syntax to output a variable $name in a Blade view, automatically escaping it?

That's unit 1

Answer a few questions and your score shows up here.