CS FundamentalsVery hardGATE CS · TCS NQT Prime · Product Company SDE
What risk does a 'merge queue' (serialising merges to main, re-testing each change against the latest main before it actually lands) specifically guard against?
- A. Commit messages being too long
- B. Developers writing code with syntax errors
- C. The repository running out of disk space
- D. Two individually-passing changes being merged around the same time in a way that, combined, breaks main even though neither broke it alone
Correct answer: D. Two individually-passing changes being merged around the same time in a way that, combined, breaks main even though neither broke it alone
Even if each change passes CI against the main branch it was based on, two such changes merged close together could conflict in subtle ways that only show up once combined; a merge queue re-validates each change against the very latest main just before it lands, catching this.
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
- A module of 50000 lines of code has 30 defects found in testing. What is the defect density, in defects per KLOC?
- Which of these is a core difference between Scrum and Kanban as commonly practised?
- A module of 15000 lines of code has 41 defects found in testing. What is the defect density, in defects per KLOC?
- A function contains 9 binary decision points (if/while/for conditions), and no other branching. Using V(G) = (number of decision points) +…
- What does git rebase do differently from git merge when integrating a feature branch onto main?
- Why might a team deliberately choose NOT to use story points and instead estimate tasks directly in hours?