CS FundamentalsHardGATE CS · TCS NQT Prime · Product Company SDE
What is `git bisect` used for?
- A. Comparing two remote repositories' histories
- B. Splitting a single commit into two separate commits
- C. Automating a binary search through commit history to find the exact commit that introduced a bug, given a known-good and a known-bad commit
- D. Merging two unrelated repositories into one
Correct answer: C. Automating a binary search through commit history to find the exact commit that introduced a bug, given a known-good and a known-bad commit
git bisect checks out a sequence of commits chosen by binary search between a known-good and known-bad point, with the user (or a test script) marking each as good or bad, quickly narrowing down the exact offending 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
- A PERT activity has optimistic time 8 days and pessimistic time 22 days. What is its standard deviation, SD = (P − O) / 6?
- A 'big-bang' SDLC approach (minimal planning, developers start coding immediately based on a rough idea) is most appropriate for:
- A module of 20000 lines of code has 45 defects found in testing. What is the defect density, in defects per KLOC?
- A high-risk, large-scale project needs an explicit, repeated risk analysis before committing further resources at each stage. Which SDLC…
- A client cannot clearly articulate the user interface they want, but the backend logic is well specified. Which SDLC approach is most…
- A system accepts a value from 1 to 41 inclusive. Using equivalence partitioning, what is the minimum number of test cases needed to cover…