Home / CSE MCQs / Django ::

CSE MCQs :: Django

  1. The architecture of Django consists of?
  2. A.
    Models
    B.
    Views
    C.
    Templates
    D.
    All of these

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. What does of Django field class types do?
  4. A.
    The database column type
    B.
    The default HTML widget to avail while rendering a form field
    C.
    The minimal validation requirements used in Django admin
    D.
    All of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. What is the purpose of settings.py?
  6. A.
    To configure settings for the Django project
    B.
    To configure settings for an app
    C.
    To set the date and time on the server
    D.
    To sync the database schema

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. What are the caching strategies in Django?
  8. A.
    File sytem caching
    B.
    In-memory caching
    C.
    Both A and B
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. In Django how would you retrieve all the 'User' records from a given database?
  10. A.
    User.objects.all()
    B.
    Users.objects.all()
    C.
    User.all_records()
    D.
    User.object.all()

    View Answer

    Workspace

    Discuss Discuss in Forum