DJANGO QUIZ DESCRIPTION Total Questions −30 00 Max Time − 15:00 Which Command is used to create a project in Django? Project manage.py _init_.py All of the above _________ are modules in drupal. Core modules Contributed modules CustomModules All of the above MVT Stands for? Model-View-Template Model-View-Table Map-View-Template Main-View-Template What are the Advantages of Django? It supports Multilingual It supports the framework Administration GUI All of the above Django was designed to help developers take applications from concept to completion as quickly as possible. True False What does of Django field class types do? The database column type The default HTML widget to avail while rendering a form field The minimal validation requirements used in Django admin All of the above Can I use Django offline? Yes No Django was introduced by ................. Adrian Holovaty Bill Gates Rasmus Lerdorf Tim Berners-Lee Django is a _____________ Python web framework. low-level mid-level high-level None of the above What is the Django shortcut method to more easily render an html response? render_to_html render_to_response response_render render 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 _________ are the pieces of content that can be rendered anywhere on your Drupal website. Blocks Nodes Texonomy All of the above Which of these variables are the settings for django.contib.staticfiles app? STATIC_URL STATIC_ROOT STATICFILES_DIRS All of the above The architecture of Django consists of? Models Views Templates All of these What are the caching strategies in Django? File sytem caching In-memory caching Both A and B None django is written in which language? PHP Python Java Perl By using django.contrib.humanize, you can use the following filter in your template to display the number 3 as three. apnumber intcomma intword ordinal What is the Django command to start a new app named 'users' in an existing project? manage.py "“newapp users manage.py newapp users manage.py "“startapp users manage.py startapp users What are Migrations in Django? They are files saved in migrations directory. They are created when you run makemigrations command. Migrations are files where Django stores changes to your models. All of the above In Django how would you retrieve all the 'User' records from a given database? User.objects.all() Users.objects.all() User.all_records() User.object.all() Which of the following are Advantages of Django? Object-Relational Mapping (ORM) Support Multilingual Support Administration GUI Framework Support Which of the following is a valid forloop attributes of Django Template System? forloop.reverse forloop.firstitem forloop.counter0 forloop.lastitem What does {{ name }} this mean in Django Templates? {{ name }} will be the output. It will be displayed as name in HTML. The name will be replaced with values of Python variable. None of the above What is Django app? Django app is an extended package with base package is Django Django app is a python package with its own components. Both 1 & 2 Option All of the above Which of the following is used If you need to deploy your project over WSGI? settings.py wsgi.py urls.py __init__.py View response can be the ? HTML contents 404 error XML document All of the above Django was initially released in .................. July 2005 July 2006 June 2005 None of above What Commands are used to create a project in Django? Project _init_.py manage.py All of the above mentioned Which commands use to create a project in Django? $ django-admin createproject project_name $ django-admin startproject project_name $ django startproject project_name $ django createproject project_name In Django, views have to be created in the app views.py file. TRUE FALSE Can be true or false Can not say Previous Next Total Question16 Wrong Answer13 Right Answer13