Get ready for the Azure Data Scientists Associate Exam with flashcards and multiple-choice questions, each with hints and explanations. Boost your confidence and increase your chances of passing!

Practice this question and more.


Which term describes the action of modifying code that incorrectly runs in a previous commit?

  1. Revert

  2. Merge

  3. Push

  4. Clone

The correct answer is: Revert

The term that describes the action of modifying code that incorrectly runs in a previous commit is "revert." When you revert a commit, you create a new commit that undoes the changes made by the original one. This is especially useful when a past change causes issues in the codebase. By reverting, you effectively restore the state of the code to a point before the problematic commit was made, allowing you to resolve errors without losing subsequent work. In contrast, merging combines different branches of code, integrating the changes made in one branch into another. Pushing refers to sending local code changes to a remote repository, allowing others to access the latest version, while cloning involves creating a copy of a repository, usually from a remote source to a local environment. Each of these actions plays a different role in version control and collaboration within coding projects and does not specifically address correcting issues introduced by a prior commit like reverting does.