CS FundamentalsModerateWipro · Cognizant technical pattern
A library following Semantic Versioning is at version 2.4.7. The next release removes a public method that clients may be calling. What should the new version be?
- A. 2.5.0
- B. 3.0.0
- C. 2.4.8
- D. 3.4.7
Correct answer: B. 3.0.0
SemVer is MAJOR.MINOR.PATCH. A backward-incompatible change to the public API bumps MAJOR and resets the others: 3.0.0. A MINOR bump (2.5.0) is for backward-compatible features and PATCH for compatible bug fixes.
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 bug exists at the current commit but not at a commit 200 commits earlier. Using git bisect (a binary search through history), what is…
- What distinguishes continuous deployment from continuous delivery?
- In a unit test, the real payment gateway is replaced by an object that records calls so that the test can assert “charge() was called…
- Using a three-point PERT estimate, a task has optimistic time 4 days, most likely 6 days and pessimistic 14 days. What is the expected…
- An application is modified so that it keeps working after the company moves it to a new operating system version and a new database…
- Counts for a system: 10 external inputs, 8 external outputs, 6 external inquiries, 4 internal logical files and 2 external interface…