Django Quiz 2017

Man feeding pony

Yesterday evening I gave a quiz at the London Django Meetup Group for the second year running. Here it is so you can do it at home (no cheating!). Answers are at the bottom.

Part 1: Trivia

1. What species is Django’s unofficial spirit animal?

  1. Pegasus
  2. Unicorn
  3. Pony
  4. Seal
  5. Dolphin
  6. Elephant

2. Djangocon EU this year was in…

  1. Bologna
  2. Genoa
  3. Venice
  4. Florence

3. What does LTS stand for?

  1. Long Tail Support
  2. Long Term Support
  3. Life Time Support
  4. Life Term Support

4. What does WSGI stand for?

  1. Web Socket Gateway Interface
  2. Web Server Gateway Interface
  3. Web Server Gated Interface
  4. WebS GuardIan

5. What does ACID stand for?

  1. Atomicity Consistency Integrity Durability
  2. Atomicity Concurrency Isolation Durability
  3. Atomicity Consistency Isolation Durability
  4. All Carefully Inserted Data

6. When was the first commit on Django?

One point for year, one for month, one for day

7. When was the first commit in Python?

One point for year, one for month, one for day

8. What is the name of the current Django fellow?

One point for first name, one for last

Part 2: Coding with Django

1. What’s the import for the new Django 2.0 URL syntax?

  1. from django.paths import url
  2. from django.urls import path
  3. from django.urls import url
  4. from django.urls import fantastic_new_url

2. When you run tests…

  1. settings.DEBUG is forced to True
  2. settings.DEBUG is forced to False
  3. They fail if settings.DEBUG is not True
  4. They fail if settings.DEBUG is not False

3. The email addresses in settings.ADMINS…

  1. will be notified of 404 errors and exceptions
  2. will be notified of exceptions
  3. will be the only ones allowed to use the Admin
  4. will be notified of bots crawling the sites

4. Django 1.11 was the first version with a non-optional dependency - what was it on?

Give the PyPI package name.

5. What’s the minimum supported version of Python for Django 2.0?

  1. 2.7
  2. 2.8
  3. 2.999999999999999
  4. 3.3
  5. 3.4
  6. 3.5
  7. 3.6

ANSWERS

But first, some vertical space.

A

N

S

W

E

R

S

B

E

L

O

W

Part 1: Trivia

1. What species is Django’s unofficial spirit animal?

a) Pegasus

Although called the Django Pony, it’s a winged horse, aka pegasus.

2. Djangocon EU this year was in…

d) Florence

See 2017.djangocon.eu. The youtube channel has some talks worth watching.

3. What does LTS stand for?

b) Long Term Support

Though some would like it to last a life time :)

4. What does WSGI stand for?

b) Web Server Gateway Interface

5. What does ACID stand for?

c) Atomicity Consistency Isolation Durability

6. When was the first commit on Django?

2005-07-13

Jacob Kaplan-Moss in SVN (now imported into Git): “Created basic repository structure”. See the commit on GitHub.

7. When was the first commit in Python?

1990-08-09

“Initial revision” by Guido van Rossum - see GitHub.

8. What is the name of the current Django fellow?

Tim Graham

Part 2: Coding with Django

1. What’s the import for the new Django 2.0 URL syntax?

from django.urls import path

As per the release notes which are worth reading if you haven’t yet :)

2. When you run tests…

b) settings.DEBUG is forced to False.

As per the docs

3. The email addresses in settings.ADMINS…

b) will be notified of exceptions

As per the docs.

4. Django 1.11 was the first version with a non-optional dependency - what was it on?

pytz

It was optional and highly recommended for many versions before.

5. What’s the minimum supported version of Python for Django 2.0?

3.4

Again see the 2.0 release notes!

Fin

Hope you enjoyed doing/reading/skimming this quiz!


Improve your Django develompent experience with my new book.


Subscribe via RSS, Twitter, Mastodon, or email:

One summary email a week, no spam, I pinky promise.

Related posts:

Tags: