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

Quiz: Searching Git History · Question 5 of 10

git bisect finds the first bad commit using which idea?

git bisect finds the first bad commit using which idea?

  1. A.Testing every commit from newest to oldest
  2. B.Binary search: test the middle commit and halve the range each time
  3. C.Random sampling of commits
  4. D.Comparing commit messages
Answer & explanation

Correct answer: Binary search: test the middle commit and halve the range each time

Each answer of good or bad discards half of the remaining commits.

Can you get the rest right without peeking?

Take the timed Quiz: Searching Git History quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →