Branching interview questions

15 Branching questions from the Git bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Branch?

Junior
  1. A.a lightweight, movable named pointer to a single commit, letting independent lines of work diverge
  2. B.advancing a pointer straight to a descendant when no divergent work exists, creating no extra node
  3. C.a tiny file under refs containing the forty-character hash of the tip it currently names
  4. D.the state where you have checked out a specific snapshot directly rather than any named line of work

Answer + AI explanation with Pro

2. Which term means: "a lightweight, movable named pointer to a single commit, letting independent lines of work diverge"?

Junior
  1. A.Branch
  2. B.Branch pointer
  3. C.Fast-forward
  4. D.Default branch

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Branch — the primary line, commonly named main or master, created automatically in a fresh repository
  2. B.Branch — a tiny file under refs containing the forty-character hash of the tip it currently names
  3. C.Branch — advancing a pointer straight to a descendant when no divergent work exists, creating no extra node
  4. D.Branch — a lightweight, movable named pointer to a single commit, letting independent lines of work diverge

Answer + AI explanation with Pro

4. What is Fast-forward?

Mid
  1. A.the primary line, commonly named main or master, created automatically in a fresh repository
  2. B.the state where you have checked out a specific snapshot directly rather than any named line of work
  3. C.advancing a pointer straight to a descendant when no divergent work exists, creating no extra node
  4. D.a lightweight, movable named pointer to a single commit, letting independent lines of work diverge

Answer + AI explanation with Pro

5. Which term means: "advancing a pointer straight to a descendant when no divergent work exists, creating no extra node"?

Mid
  1. A.Branch
  2. B.Fast-forward
  3. C.Detached HEAD
  4. D.Branch pointer

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.Fast-forward — the primary line, commonly named main or master, created automatically in a fresh repository
  2. B.Fast-forward — advancing a pointer straight to a descendant when no divergent work exists, creating no extra node
  3. C.Fast-forward — the state where you have checked out a specific snapshot directly rather than any named line of work
  4. D.Fast-forward — a tiny file under refs containing the forty-character hash of the tip it currently names

Answer + AI explanation with Pro

7. What is Detached HEAD?

Mid
  1. A.a tiny file under refs containing the forty-character hash of the tip it currently names
  2. B.advancing a pointer straight to a descendant when no divergent work exists, creating no extra node
  3. C.a lightweight, movable named pointer to a single commit, letting independent lines of work diverge
  4. D.the state where you have checked out a specific snapshot directly rather than any named line of work

Answer + AI explanation with Pro

8. Which term means: "the state where you have checked out a specific snapshot directly rather than any named line of work"?

Mid
  1. A.Fast-forward
  2. B.Branch
  3. C.Detached HEAD
  4. D.Default branch

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.Detached HEAD — a tiny file under refs containing the forty-character hash of the tip it currently names
  2. B.Detached HEAD — a lightweight, movable named pointer to a single commit, letting independent lines of work diverge
  3. C.Detached HEAD — advancing a pointer straight to a descendant when no divergent work exists, creating no extra node
  4. D.Detached HEAD — the state where you have checked out a specific snapshot directly rather than any named line of work

Answer + AI explanation with Pro

10. What is Branch pointer?

Senior
  1. A.the primary line, commonly named main or master, created automatically in a fresh repository
  2. B.a tiny file under refs containing the forty-character hash of the tip it currently names
  3. C.advancing a pointer straight to a descendant when no divergent work exists, creating no extra node
  4. D.a lightweight, movable named pointer to a single commit, letting independent lines of work diverge

Answer + AI explanation with Pro

11. Which term means: "a tiny file under refs containing the forty-character hash of the tip it currently names"?

Senior
  1. A.Branch
  2. B.Branch pointer
  3. C.Detached HEAD
  4. D.Fast-forward

Answer + AI explanation with Pro

12. Which statement is correct?

Senior
  1. A.Branch pointer — the primary line, commonly named main or master, created automatically in a fresh repository
  2. B.Branch pointer — a tiny file under refs containing the forty-character hash of the tip it currently names
  3. C.Branch pointer — a lightweight, movable named pointer to a single commit, letting independent lines of work diverge
  4. D.Branch pointer — the state where you have checked out a specific snapshot directly rather than any named line of work

Answer + AI explanation with Pro

13. What is Default branch?

Junior
  1. A.advancing a pointer straight to a descendant when no divergent work exists, creating no extra node
  2. B.the primary line, commonly named main or master, created automatically in a fresh repository
  3. C.the state where you have checked out a specific snapshot directly rather than any named line of work
  4. D.a tiny file under refs containing the forty-character hash of the tip it currently names

Answer + AI explanation with Pro

14. Which term means: "the primary line, commonly named main or master, created automatically in a fresh repository"?

Junior
  1. A.Default branch
  2. B.Detached HEAD
  3. C.Branch pointer
  4. D.Branch

Answer + AI explanation with Pro

15. Which statement is correct?

Junior
  1. A.Default branch — the primary line, commonly named main or master, created automatically in a fresh repository
  2. B.Default branch — the state where you have checked out a specific snapshot directly rather than any named line of work
  3. C.Default branch — a lightweight, movable named pointer to a single commit, letting independent lines of work diverge
  4. D.Default branch — a tiny file under refs containing the forty-character hash of the tip it currently names

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Branching question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers