Question - 1
What are the features available in Django web framework?
- Admin Interface (CRUD)
- Templating
- Form handling
- All the above
Solutions
Answer- D
Question - 2
which below option is the inheritance style in Django?
- Abstract base classes
- Multi-table Inheritance
- Proxy models
- All the above
Solutions
Answer- D
Question - 3
Which method is used rather than a path() in urls.py to pass in regular expressions as routes?
- url()
- static()
- path()
- include()
Solutions
Answer- A
Question - 4
What is the use of per-site caching?
- It is used to caching of all the pictures on a website.
- It is used to caching of the whole website.
- It is used to caching of all the static files.
- It is used to Caching of all the dynamic files.
Solutions
Answer- B
Question - 5
What is the meaning of {{name}} in Django Templates?
- The name will be restored with values of Python variable.
- It would be showed as the name in HTML.
- It will show the some static value
- None of the above
Solutions
Answer- A
Question - 6
Which of the following command are used to edition the SQL query of the model?
- sqlmigrations
- displaymigrations
- migrations
- makemigrations
Solutions
Answer- A
Question - 7
What is the Django command to view a database schema of an existing (or legacy) database?
- manage.py inspect
- manage.py legacydb
- manage.py inspectdb
- None of the above
Solutions
Answer- A
Question - 8
Which of the following password validators are not supported by default in Django?
- MinimumLengthValidator
- MaximumLengthValidator
- NumericPasswordValidator
- None of the above
Solutions
Answer- B
Question - 9
Which Command isused to create a project in Django?
- Project
- manage.py
- _init_.py
- All of the above
Solutions
Answer- D
Question - 10
What is the Django command to start a new app named ‘names’ in an existing project?
- manage.py –newapp names
- manage.py newapp names
- manage.py –startapp names
- manage.py startapp names
Solutions
Answer- D
Question - 11
Which of the following is the Django shortcut method to more easily render an html response?
- render
- response_render
- render_to_response
- render_to_html
Solutions
Answer- C
Question - 12
Which of the following is a valid forloop attributes of Django Template System?
- forloop.reverse
- forloop.firstitem
- forloop.counter0
- forloop.lastitem
Solutions
Answer- C
Question - 13
What is the objective of __init__.py in project directories?
- It can initialise any null values.
- It enables Python to identify the folder as a package.
- It can delete it
- All the above
Solutions
Answer- B
Question - 14
Which of the following command is not a management command of staticfiles?
- python manage.py makemigrations
- python manage.py findstatic
- python manage.py runstatic
- python manage.py collectstatic
Solutions
Answer- A
Question - 15
Which of these variables are the settings for django.contib.staticfiles app?
- STATIC_URL
- STATIC_ROOT
- STATICFILES_DIRS
- All of the above
Solutions
Answer- D
Question - 16
Which of the following setting includes the parameter of main-URLs file?
- static_url
- dynamic_url
- root_urlconfig
- media_url
Solutions
Answer- C
Question - 17
Which framework is based on Django?
Answer- B
Question - 18
which of these is not a valid backend for caching in django?
- django.core.cache.backends.sys.memory
- django.core.cache.backends.db.DatabaseCache
- django.core.cache.backends.locmem.LocMemCache
- None of the above
Solutions
Answer- A
Question - 19
What is the most easiest, fastest, and most stable deployment choice in most cases with Django?
- FastCGI
- mod_wsgi
- SCGI
- None of the above
Solutions
Answer- B
Question - 20
What are the caching strategies in Django?
- File sytem caching
- In-memory caching
- Both A and B
- None of the above
Solutions
Answer- C
Practice more set questions