CS FundamentalsHardProduct-company MCQ pattern
Two developers branch from the same commit. In which of these situations will git merge report a conflict? 1. Both changed different, non-adjacent lines of the same file. 2. Both changed the same line of the same file in different ways. 3. One deleted a file that the other modified. 4. Both added the identical line at the same place with identical content.
- A. Only 2
- B. Only 2 and 3
- C. Only 1, 2 and 3
- D. All four
Correct answer: B. Only 2 and 3
A same-line edit with different content (2) and a modify/delete pair (3) conflict. Edits to different, separated lines merge cleanly (1), and identical changes on both sides are taken once without conflict (4).
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
- Match each SOLID principle with the violation it forbids. P. Single Responsibility Q. Interface Segregation R. Open/Closed S. Dependency…
- Match each pattern with its intent. P. Builder Q. Facade R. Proxy S. Strategy 1. Give a simple single entry point to a complex subsystem…
- Assertion (A): A lazily initialised Singleton that checks if (instance == null) before creating the object can end up with two instances…
- How many of the following HTTP methods are idempotent by the HTTP specification: GET, PUT, DELETE, POST?
- Assertion (A): In a RESTful API, every request from the client must carry all the information needed to process it, such as an auth token…
- Match each HTTP status code with its meaning. P. 204 Q. 304 R. 409 S. 429 1. Too many requests (rate limit hit) 2. Request conflicts with…