Correct Answer : Option (A) : Python
Correct Answer : Option (C) : Web framework
Correct Answer : Option (B) : Adrian Holovaty
Correct Answer : Option (C) : Both (A) and (B)
Correct Answer : Option (D) : 2003
Explanation :
Correct Answer : Option (C) : 21 July 2005
Correct Answer : Option (A) : high-level
Explanation : Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design.
Correct Answer : Option (D) : All of the above
Correct Answer : Option (B) : MVT
Correct Answer : Option (B) : render_to_response
Correct Answer : Option (C) : apnumber
Correct Answer : Option (A) : django.core.cache.backends.sys.memory
Correct Answer : Option (A) : MVC
Explanation : Django supports the Model-View-Controller (MVC) design pattern.
Correct Answer : Option (B) : Model-View-Template
Explanation : The Model-View-Template (MVT) is slightly different from MVC. The template is a HTML file mixed with Django Template Language (DTL).
Correct Answer : Option (C) : 3
Explanation : MVC pattern is based on three components : Model, View, and Controller.
Explanation : View response can be the HTML contents of a Web page, or a redirect, or a 404 error, or an XML document, or an image.
Correct Answer : Option (C) : The name will be replaced with values of Python variable.
Correct Answer : Option (A) : forloop.counter
Explanation : forloop.counter valid forloop attributes of Django Template System.
Correct Answer : Option (B) : $ django-admin startproject project_name
Explanation : Whether you are on Windows or Linux, just get a terminal or a cmd prompt and navigate to the place you want your project to be created, then use this code : $ django-admin startproject project_name.
Correct Answer : Option (B) : manage.py
Explanation : manage.py : This file is kind of your project local django-admin for interacting with your project via command line (start the development server, sync db...).
Correct Answer : Option (A) : wsgi.py
Explanation : wsgi.py is used if you need to deploy your project over WSGI.
Correct Answer : Option (D) : 2
Explanation : There are two kinds of HTTP requests, GET and POST.
Explanation : All of the above are variables are the settings for django.contib.staticfiles app.
Correct Answer : Option (C) : mod_wsgi
Correct Answer : Option (D) : None of the above
Explanation : None of the above is not a valid method or approach to perform URL resolution.
Correct Answer : Option (A) : {{string|truncatewords:80}}
Explanation : {{string|truncatewords:80}} : This filter will truncate the string, so you will see only the first 80 words.
Correct Answer : Option (B) : {{variable}}
Explanation : Displaying Variables : A variable looks like this: {{variable}}
Correct Answer : Option (C) : To configure settings for the Django project
Correct Answer : Option (D) : User.objects.all()
Correct Answer : Option (A) : TRUE
Explanation : True, In Django, views have to be created in the app views.py file.
Correct Answer : Option (B) : 3
Explanation : This function takes three parameters : Request, The path to the template and Dictionary of parameters.
books = Book.objects.all()
Correct Answer : Option (B) : Database level Implementation – books.count()
Explaination : Database level Implementation – books.count() implementation would be fastest.
books.count()