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 Introduction to Django

INT253 — Web Development In Python Using Django 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Introduction to Django Easy

    What is Django?

  2. Question 2 of 60 Introduction to Django Easy

    Which programming language is primarily used with Django?

  3. Question 3 of 60 Introduction to Django Easy

    Which architectural pattern does Django commonly follow?

  4. Question 4 of 60 Installing Python and Django Easy

    Which command is commonly used to install Django with pip?

  5. Question 5 of 60 Installing Python and Django Easy

    Which command can display the installed Python version?

  6. Question 6 of 60 Setting up project in editor Easy

    Which editor feature helps developers run Django commands without leaving the editor?

  7. Question 7 of 60 Setting up project in editor Easy

    What should normally be opened as the workspace folder in a code editor?

  8. Question 8 of 60 Projects and Apps overview Easy

    What does a Django project usually represent?

  9. Question 9 of 60 Projects and Apps overview Easy

    What is a Django app designed to provide?

  10. Question 10 of 60 Projects and Apps overview Easy

    Can one Django project contain multiple apps?

  11. Question 11 of 60 Project structure Easy

    Which Django project file contains settings such as installed apps and database configuration?

  12. Question 12 of 60 Project structure Easy

    Which project file usually defines the main URL routes?

  13. Question 13 of 60 Project structure Easy

    What is the purpose of the wsgi.py file in a Django project?

  14. Question 14 of 60 Creating your first project Easy

    Which command creates a Django project named mysite?

  15. Question 15 of 60 Django-admin and manage.py commands Easy

    Which command starts Django's development server?

  16. Question 16 of 60 Django-admin and manage.py commands Easy

    What is manage.py mainly used for?

  17. Question 17 of 60 Django-admin and manage.py commands Easy

    Which command applies pending database migrations?

  18. Question 18 of 60 App structures Easy

    Which file in a Django app is commonly used to define database models?

  19. Question 19 of 60 App structures Easy

    Which file in a Django app commonly contains request-handling functions or classes?

  20. Question 20 of 60 Creating an App Easy

    Which command creates a Django app named blog?

  21. Question 21 of 60 Introduction to Django Medium

    A team must quickly build a database-backed employee portal with authentication and an administrative interface. Why is Django a suitable choice?

  22. Question 22 of 60 Installing Python and Django Medium

    Which sequence correctly installs Django in an isolated environment for a new project?

  23. Question 23 of 60 Installing Python and Django Medium

    A computer has several Python installations. Which command most reliably checks the Django version available to the Python interpreter currently being used?

  24. Question 24 of 60 Setting up project in editor Medium

    Django runs correctly from an activated virtual environment, but the editor reports that django imports cannot be resolved. What should be checked first?

  25. Question 25 of 60 Projects and Apps overview Medium

    An online store needs separate functionality for products, customer accounts, and payments. Which Django organization is most appropriate?

  26. Question 26 of 60 Projects and Apps overview Medium

    A reviews component may be reused in a bookstore site and a movie site. Which design best supports this goal?

  27. Question 27 of 60 Project structure Medium

    After running django-admin startproject portal, which file should be edited to add an installed app and configure a database?

  28. Question 28 of 60 Project structure Medium

    A developer wants requests beginning with /blog/ to be handled by the blog app. Which project file normally contains the top-level URL mapping?

  29. Question 29 of 60 Project structure Medium

    A deployment platform requires an ASGI callable for an asynchronous-compatible deployment. Which generated file exposes the appropriate application object?

  30. Question 30 of 60 Creating your first project Medium

    A developer is already inside an empty directory named schoolsite and wants manage.py created directly in that directory without another nested outer folder. Which command should be used?

  31. Question 31 of 60 Django-admin and manage.py commands Medium

    Which command starts Django's development server on local port 8080?

  32. Question 32 of 60 Django-admin and manage.py commands Medium

    The initial Django project contains migration files for built-in apps, but their database tables do not yet exist. Which command applies them?

  33. Question 33 of 60 Django-admin and manage.py commands Medium

    Why is python manage.py <command> commonly used after a Django project has been created instead of django-admin <command>?

  34. Question 34 of 60 Django-admin and manage.py commands Medium

    A developer wants Django to detect common configuration problems without starting the server or modifying the database. Which command is most appropriate?

  35. Question 35 of 60 App structures Medium

    A developer is adding a database-backed Article entity to a newly created app. In which file should the model class normally be defined?

  36. Question 36 of 60 App structures Medium

    A Product model already exists, and the developer wants it to appear in Django's administration interface. Which app file is normally updated to register it?

  37. Question 37 of 60 App structures Medium

    What is the primary purpose of the migrations directory inside a Django app?

  38. Question 38 of 60 Creating an App Medium

    From the directory containing manage.py, which command correctly creates an app named inventory?

  39. Question 39 of 60 Creating an App Medium

    An app named inventory has been created, but Django does not detect its models when makemigrations is run. What is the most likely missing step?

  40. Question 40 of 60 Creating an App Medium

    A developer creates a blog app and defines views in it, but visiting /blog/ still produces a 404 response. Which integration step is required?

  41. Question 41 of 60 Introduction to Django Hard

    A Django view retrieves records through the ORM, renders them with a template, and returns an HTTP response. Which mapping most accurately describes Django's MTV architecture in this request?

  42. Question 42 of 60 Installing Python and Django Hard

    Django was installed successfully with pip install django, but python -m django --version reports No module named django. Which diagnosis is most likely?

  43. Question 43 of 60 Installing Python and Django Hard

    A developer wants to guarantee that Django is installed into the currently activated virtual environment, even when multiple pip executables exist on PATH. Which command is the most reliable?

  44. Question 44 of 60 Setting up project in editor Hard

    A Django project runs correctly from a terminal with its virtual environment activated, but the editor marks every django import as unresolved. What is the most appropriate correction?

  45. Question 45 of 60 Projects and Apps overview Hard

    A team is building an e-commerce site with independently reusable inventory, payment, and review functionality. Which design best follows Django's project-and-app model?

  46. Question 46 of 60 Projects and Apps overview Hard

    An app package exists inside a Django project and can be imported successfully, but Django does not discover its models during normal application loading. Which omission most directly explains this?

  47. Question 47 of 60 Project structure Hard

    After running django-admin startproject config, which file is intended primarily as the command-line entry point and normally sets DJANGO_SETTINGS_MODULE before delegating to Django?

  48. Question 48 of 60 Project structure Hard

    A generated project's inner package is renamed from config to core, but no file contents are updated. Running python manage.py check now fails to import the settings module. Which reference must be updated to address this immediate failure?

  49. Question 49 of 60 Creating your first project Hard

    A developer is already inside an existing repository root and wants manage.py placed there while creating the project package as config/. Which command is appropriate?

  50. Question 50 of 60 Creating your first project Hard

    A directory already contains a file named manage.py. What should a developer expect when running django-admin startproject config . in that directory?

  51. Question 51 of 60 Django-admin and manage.py commands Hard

    Why does python manage.py check usually work without a --settings argument, while a directly invoked django-admin check may require settings configuration?

  52. Question 52 of 60 Django-admin and manage.py commands Hard

    A project has config/settings/dev.py and config/settings/prod.py, and no usable default settings module. Which command explicitly runs system checks with the development settings?

  53. Question 53 of 60 Django-admin and manage.py commands Hard

    A developer changes a model class and immediately runs python manage.py migrate, but no database alteration occurs. Assuming the app is installed correctly, which missing action best explains the result?

  54. Question 54 of 60 Django-admin and manage.py commands Hard

    A development server must accept connections from other machines on the local network using port 9000. Which command requests the required binding?

  55. Question 55 of 60 App structures Hard

    In a newly generated Django app, which file is specifically intended to define application metadata and startup configuration through a subclass of AppConfig?

  56. Question 56 of 60 App structures Hard

    A migration file imports migrations and defines dependencies and operations but is never detected by Django. The filename is valid and the app is installed. Which structural problem is most likely?

  57. Question 57 of 60 Creating an App Hard

    A developer runs python manage.py startapp reports, sees the new package, and then runs makemigrations reports. Django responds that no installed app has the label reports. What is the most likely cause?

  58. Question 58 of 60 Creating an App Hard

    An app is stored at company/modules/billing, and its AppConfig.name is company.modules.billing. Which INSTALLED_APPS entry most explicitly selects that configuration class?

  59. Question 59 of 60 Creating an App Hard

    A developer wants startapp to populate an already existing directory /srv/project/modules/audit. Which command has the correct argument structure?

  60. Question 60 of 60 Project structure Hard

    A deployment server needs a synchronous WSGI callable, while another server needs an asynchronous ASGI callable. Which generated modules expose these interfaces by default?

That's unit 1

Answer a few questions and your score shows up here.