DJANGO QUIZ DESCRIPTION Total Questions −30 14:59 Max Time − 15:00 Render function takes ___________ parameters. 1 2 3 4 Django was created in the fall of? 2001 2003 2005 2007 Django supports the ___________ pattern. MVI MVP MVC MVZ 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 What is node in drupal? A node is any piece of individual content, such as a page, poll, article etc. Nodes are the pieces of content that can be rendered anywhere on your Drupal website. Module 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() django is written in which language? PHP Python Java Perl Which file is kind of your project local django-admin for interacting with your project via command line? settings.py admin.py models.py manage.py Which of these variables are the settings for django.contib.staticfiles app? STATIC_URL STATIC_ROOT STATICFILES_DIRS All of the above _________ are the pieces of content that can be rendered anywhere on your Drupal website. Blocks Nodes Texonomy All of the above The architecture of Django consists of? Models Views Templates All of these How do you concatenate two QuerySets into one list? result = list(query_set_1 | query_set_2) from itertools import chain result = list(chain(query_set_1, query_set_2)) from django.db.models import Q result = Q(query_set_1) | Q(query_set_1) result = query_set_1 + query_set_2 What happens if MyObject.objects.get() is called with parameters that do not match an existing item in the database? The Http404 exception is raised The DatabaseError exception is raised The MyObject.DoesNotExist exception is raised The object is created and returned 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 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 Can I use Django offline? Yes No Django was introduced by ................. Adrian Holovaty Bill Gates Rasmus Lerdorf Tim Berners-Lee Django is based on which framework? MVC MVVM MVT None of the above MVC pattern is based on _______ components. 2 3 4 5 _________ are modules in drupal. Core modules Contributed modules CustomModules All of the above Which of the following is a valid forloop attributes of Django Template System? forloop.reverse forloop.firstitem forloop.counter0 forloop.lastitem 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 In Django, views have to be created in the app views.py file. TRUE FALSE Can be true or false Can not say What are the advantages of using Django for web development? It facilitates you to divide code modules into logical groups to make it flexible to change It provides auto-generated web admin to make website administration easy It provides pre-packaged API for common user tasks All of the above What are the features available in Django web framework? Admin Interface (CRUD) Templating Form handling 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 What are the Advantages of Django? It supports Multilingual It supports the framework Administration GUI All of the above What does the architecture of Django consist of ? Views Models Templates All of the above 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 What Commands are used to create a project in Django? Project _init_.py manage.py All of the above mentioned Previous Next Total Question16 Wrong Answer13 Right Answer13