Branching interview questions

15 real Branching questions from the Git bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Branching free