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?

  1. A. 2.5.0
  2. B. 3.0.0
  3. C. 2.4.8
  4. 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.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic