Correct Answer : forloop.counter
Explanation : forloop.counter valid forloop attributes of Django Template System.
books = Book.objects.all()
Correct Answer : Database level Implementation – books.count()
Explaination : Database level Implementation – books.count() implementation would be fastest.
books.count()
Correct Answer : 3
Explanation : This function takes three parameters : Request, The path to the template and Dictionary of parameters.
Correct Answer : TRUE
Explanation : True, In Django, views have to be created in the app views.py file.