← All topics
Quiz: Tags, Releases and Versioning: questions with answers
15 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. What is the key difference between a branch and a tag?
- Q2. Which command creates an annotated tag?
- Q3. You created tag v1.3.0 and ran git push. Teammates cannot see the tag. Why?
- Q4. git describe --tags prints v2.0.0-5-g3f9a1c2. What does the 5 mean?
- Q5. A library is at version 3.2.7. You add a new optional parameter; old code still works. What is the next version?
- Q6. A library is at 3.2.7. You rename a function that users call. What is the next version?
- Q7. What does this print? (code)
- Q8. What does ^4.18.2 in package.json allow?
- Q9. You checked out tag v1.0.0 to fix a bug in that release. What should you do before committing?
- Q10. What does a GitHub release add on top of a Git tag?
- Q11. Which command lists only tags starting with v1.?
- Q12. How do you delete tag v1.1.0 from GitHub?
- Q13. Which version comes first according to semantic versioning?
- Q14. What does a version starting with 0, such as 0.7.3, signal?
- Q15. Which command lists tags in correct version order, so v1.10.0 comes after v1.9.3?