• 1. 
    Which of these commands are used to print the SQL query of the model?

  • migrate
  • makemigrations
  • sqlmigrations
  • showmigration
  • 2. 
    Python is not a case sensitive language

  • True
  • False
  • 3. 
    What does the term "T" refer to in MVT architecture?

  • Template
  • Tag
  • Temporary
  • Tuples
  • 4. 
    What are Migrations in Django?

  • Migrations are files where Django stores changes to your models.
  • They are files saved in migrations directory.
  • They are created when you run makemigrations command.
  • All of the above
  • 5. 
    Django was introduced in the year:

  • 2005
  • 2006
  • 2007
  • 2008
  • 6. 
    ......... is an example of console-based application

  • Django
  • Tryton
  • IPython
  • Fandango
  • 7. 
    What is the value of DEBUG when website is online/ or deployed?

  • True
  • False
  • 8. 
    Python cannot be used to develop ERP applications

  • True
  • False
  • 9. 
    Django Reinhardt is a

  • French guitarist
  • US web programmer
  • Japanese guitarist
  • All of above
  • 10. 
    ............ is an example of an audio application developed using Python

  • cplay
  • TimPlayer
  • IPython
  • Django
  • 11. 
    Which command is used to create a new Django Project?

  • django-admin startproject P1
  • python manage.py startproject P1
  • > Startproject django P1
  • All of above
  • 12. 
    What does the file asgi.py refer to?

  • Asynchronous server
  • Application server
  • App server
  • App services
  • 13. 
    Which of these commands is useful to update to the format supported by installed database?

  • migrate
  • runserver
  • startapp
  • upgrade
  • 14. 
    ......... is the smallest unit inside the given program

  • Keyword
  • Identifier
  • Lietral
  • Token
  • 15. 
    What are request.GET and request.POST objects?

  • Python Dictionaries
  • Python Lists
  • Python Dictionary-Like objects
  • None of the above
  • 16. 
    What is a Django App?

  • An app is a functionality, including models and views, that lives together in a single Python package.
  • Django app is a python package with its own components.
  • Django app is an extended package with base package is Django.
  • All of the above
  • 17. 
    What is the difference between media and static files settings?

  • The media settings holds videos and images while static files hold CSS, js.
  • The media setting manages files uploaded by the user. Static settings manages the static assets of the website.
  • Both A & B
  • None of the above
  • 18. 
    Which command is used to install he django framework?

  • pip install django
  • python manage.py runserver
  • django-admin startproject x
  • All of above
  • 19. 
    Identify the code that properly creates an instance of a class named Car.

  • camero.car(make, model)
  • tesla = car.make()
  • mustang = Car(make,model)
  • porsche = car.make.model()
  • 20. 
    Which file contains the path of list of HTML forms to be included from the application of the project?

  • manage.py
  • settings.py
  • views.py
  • urls.py
  • 21. 
    What does {{ name }} this mean in Django Templates?

  • It will be displayed as name in HTML.
  • The name will be replaced with values of Python variable.
  • {{ name }} will be the output.
  • None of the above
  • 22. 
    What does a views.py file contain?

  • functions to return HTML files.
  • list of files in templates folder.
  • form to enter the data in database.
  • None of these
Report Question
warning
access_time
  Time