🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Unique ID Generator: all 15 questions

Quiz: Unique ID Generator · Question 9 of 15

Why choose a custom epoch close to your launch date instead of 1970?

Why choose a custom epoch close to your launch date instead of 1970?

  1. A.1970 is not allowed in Python
  2. B.The 41-bit timestamp lasts about 69.7 years from the epoch, so an old epoch wastes most of that range
  3. C.It makes IDs random
  4. D.It doubles the number of machines
Answer & explanation

Correct answer: The 41-bit timestamp lasts about 69.7 years from the epoch, so an old epoch wastes most of that range

Starting from 1970 would leave only a few years before the timestamp overflows.

Can you get the rest right without peeking?

Take the timed Quiz: Unique ID Generator quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →