CS FundamentalsVery hardCognizant GenC · Infosys
Branch main has commit A. Branch feature was created from A and has commits B and C. After git merge --no-ff feature on main, how many commits are on main's history?
- A. 3
- B. 2
- C. 4
- D. 5
Correct answer: C. 4
A fast-forward would give 3 commits, but --no-ff forces a merge commit, so history has A, B, C and the merge commit.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- An object wraps another object that implements the same interface, adding behaviour dynamically before or after delegating (as…
- Module A calls B and C; B calls D and E; C calls F. In top-down integration testing with depth-first ordering, in which order are modules…
- For a one-month Sprint, the Scrum Guide's maximum time-boxes are 4 hours for the Sprint Review and 3 hours for the Sprint Retrospective…
- A tester re-runs the existing test suite after a developer changes the code, to confirm that previously working features have not broken…
- Which SDLC model completes each phase (requirements, design, coding, testing, deployment) fully before the next one starts, in a strict…
- Which Git command makes a full local copy of a remote repository, including its history?