200-901 Practice Test

200-901 Practice Test practice questions, page 5 of 26, with answer review and explanations.

Question 21

What is the outcome of executing this command? git clone ssh:/john@example.com/path/to/my-project.git

  1. creates a local copy of a repository called ג€my-projectג€
  2. initiates a new Git repository called ג€my-projectג€
  3. creates a copy of a branch called ג€my-projectג€
  4. creates a new branch called ג€my-projectג€

Question 22

Which action does the Git command git merge allow the developer to perform?

  1. Combine multiple sequences of commits into one unified history
  2. Push changes to the remote repository
  3. Create, list, rename, and delete branches
  4. Switch between branches

Question 23

How does a developer create and switch to a new branch called `my-bug-fix` to develop a product fix?

  1. git checkout -b my-bug-fix
  2. git branch -b my-bug-fix
  3. git branch my-bug-fix
  4. git checkout my-bug-fix

Question 24

Drag and drop the Git commands from the left onto the right that add modified local files to a remote repository. Not all options are used. Select and Place:

Question 25

A developer needs to prepare the file README.md in the working tree for the next commit operation using Git. Which command needs to be used to accomplish this?

  1. git -a README.md
  2. git add README.md
  3. git add README.md staging
  4. git commit README.md