🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: How Git Works Inside: all 10 questions

Quiz: How Git Works Inside · Question 2 of 10

Two students on different laptops each create a file containing exactly the same bytes. What is true about the blob ids…

Two students on different laptops each create a file containing exactly the same bytes. What is true about the blob ids Git computes?

  1. A.They differ because the computers differ
  2. B.They differ because the times differ
  3. C.They are identical, because the id depends only on the content
  4. D.They are identical only if both use the same branch name
Answer & explanation

Correct answer: They are identical, because the id depends only on the content

A blob id is the hash of the type, size and content, nothing else.

Can you get the rest right without peeking?

Take the timed Quiz: How Git Works Inside quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →