Adam Johnson

Home | Blog | Projects | Colophon

Django Quiz 2018

2018-12-23

Pony chase

On Monday evening I gave a quiz at the December London Django Meetup Group for the third year running - that makes it a tradition! Here it is so you can follow it at home - answers are at the bottom, no cheating.

Enjoy!

Part 1: Trivia

1. What does DSF stand for?

  1. Django Sans Forms
  2. Django Server Forgery
  3. Django Software Foundation
  4. Database Sequence File

2. Which two of the following are Django fellows?

One point each.

  1. Django Freeman
  2. Grace Hopper
  3. Carlton Gibson
  4. Donald Knuth
  5. Rick Sanchez
  6. Tim Graham

3. Which City was Djangocon 2018 (US) in?

4. Which City was Djangocon EU 2018 in?

One point for city, one point for country.

5. Name the official Django mailing lists

One point each.

Part 2: Coding in Django

6. What does CSRF stand for?

  1. Cross Side Request Forms
  2. Cranky Server Rack Fire
  3. Crispy Sizzly Relished Forms
  4. Cross Site Request Forgery

7. What does ORM stand for?

  1. Online Realtime Magic
  2. Object-Relational Mapper
  3. Objection Relationship Manager
  4. Ouch Random Methods

8. What does CBV stand for?

  1. Classist Biased Views
  2. Classy Blinged View
  3. Class Based View
  4. Classic Basic View

9. Which of these is true about CommonMiddleware?

  1. It was deprecated and will be removed in Django 2.2
  2. It whitelists user agents
  3. It sets the Content-Length header
  4. It handles the database connection

10. What is the Django helper for creating a database transaction or savepoint?

One point for its name, one point for full import path.

11. What is the most recent version of Django?

One point for major + minor numbers, one point for patch number.

12. What is the most recent version of Python?

One point for major + minor numbers, one point for patch number.

ANSWERS

But first, some vertical space.

A

N

S

W

E

R

S

B

E

L

O

W

Part 1: Trivia

1. What does DSF stand for?

c) Django Software Foundation

The non-profit foundation that supports the development of Django and its community.

2. Which two of the following are Django fellows?

c) Carlton Gibson f) Tim Graham

Carlton joined earlier this year.

3. Which City was Djangocon 2018 (US) in?

San Diego.

4. Which City was Djangocon EU 2018 in?

Heidelberg, Germany.

5. Name the official Django mailing lists

As listed on the Mailing Lists page:

  1. django-announce
  2. django-core-mentorship
  3. django-developers
  4. django-i18n
  5. django-updates
  6. django-users

Part 2: Coding in Django

6. What does CSRF stand for?

d) Cross Site Request Forgery

Every Django developer should have some familiarity with the CSRF protection features of Django.

7. What does ORM stand for?

b) Object-Relational Mapper

Django doesn’t use this term for its database layer much in its documentation, but there’s one on the page about querying.

8. What does CBV stand for?

c) Class Based View

9. Which of these is true about CommonMiddleware?

c) It sets the Content-Length header

…and some other “conveniences for perfectionists”.

10. What is the Django helper for creating a database transaction or savepoint?

django.db.transaction.atomic

One point for django.db.transaction and one point for atomic - see the documentation.

11. What is the most recent version of Django?

At the time of writing, 2.1.4. That’s one point for “2.1” and one for the “4”.

12. What is the most recent version of Python?

At the time of writing, 3.7.1. That’s one point for “3.7” and one for the “1”.

Fin

Hope you enjoyed doing, reading, or skimming this quiz and learnt a thing or two. If you want more, you can go back a year to the 2017 edition as well.

Happy holidays!


Subscribe via RSS, Twitter, or email:

Related posts:

Tags: django