CS FundamentalsHardWipro · Cognizant technical pattern
According to Semantic Versioning precedence rules, which list is in correct ascending order?
- A. 1.0.0 < 1.0.0-alpha < 1.0.0-beta < 1.0.0-rc.1
- B. 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-beta < 1.0.0-rc.1 < 1.0.0
- C. 1.0.0-alpha.1 < 1.0.0-alpha < 1.0.0-beta < 1.0.0
- D. 1.0.0-rc.1 < 1.0.0-beta < 1.0.0-alpha < 1.0.0
Correct answer: B. 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-beta < 1.0.0-rc.1 < 1.0.0
A pre-release version is lower than the same version without a tag, so 1.0.0 is highest. Pre-release identifiers compare alphabetically (alpha < beta < rc), and a longer list with the same prefix is higher (alpha < alpha.1).
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
- Counting every simple condition of a compound boolean expression as a separate decision (each && / || adds one), what is the cyclomatic…
- What is the cyclomatic complexity of this fragment? Count each case label other than default as one decision and each simple condition…
- A loop body contains an if-else followed by an independent if (with no else), and nothing else that branches. The loop runs between 0 and…
- A function has 4 independent integer inputs, each with a closed valid range. How many test cases do robust boundary value analysis (min…
- A form has three inputs. Input A has 3 valid and 2 invalid equivalence classes, B has 4 valid and 1 invalid, and C has 2 valid and 2…
- What is the minimum number of test cases that achieves MC/DC (unique-cause modified condition/decision coverage: for every condition, two…