CS FundamentalsModerateWipro NLTH · GATE CS
Which situation in Git definitely produces a merge conflict?
- A. Two branches add different new files
- B. Two branches change different files
- C. One branch is simply ahead of the other
- D. Two branches change the same lines of the same file in different ways
Correct answer: D. Two branches change the same lines of the same file in different ways
Git cannot choose automatically between conflicting edits to the same lines; unrelated changes merge cleanly.
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
- Which type of coupling between two modules is the loosest (most desirable)?
- A function is: c if (a > 0) x = 1; if (b > 0) y = 1; What is the minimum number of test cases for 100% branch (decision) coverage?
- A system accepts an age from 18 to 60 inclusive. Using equivalence partitioning, what is the minimum number of test cases to cover all…
- A Scrum team completed 24, 30 and 27 story points in its last three sprints. The remaining backlog is 162 points. Using average velocity…
- A developer checks out a specific commit by its hash and makes two new commits, then switches to main without creating a branch. What is…
- In Basic COCOMO (organic mode, Effort = 2.4 x (KLOC)^1.05 person-months), what is the approximate effort for a 10 KLOC project?