version control coursera week 4 quiz answers

End-of-course graded assessment

1. What is Revision History in Version Control?

  • A record of all changes in a project
  • A record of all bugs in a project
  • A record of all users in a project

2. In Bash, which of the following commands will change the working directory?

  • rm
  • mkdir
  • cd

3. In Bash, which of the following commands will create a file?

  • pwd
  • touch
  • mv

4. Which of the following can be used to search for text in a file?

  • Grep
  • Pipe
  • Uniq

5. Which Git command is used to upload the latest changes to a remote repository?

  • git push
  • git pull
  • git clone

6. True or false. Changes must be added to the Git staging area before they are committed.

  • true
  • false

7. True or false. When creating a new branch using the git branch command, that branch is immediately available to other developers.

  • true
  • false

8. Which Git command is used to check changes in a file line by line?

  • git status
  • git diff
  • git remote -v

9. In the following differential output, which line was deleted?

@@ @@
Red
Blue
-Green
+Yellow

  • Red
  • Blue
  • Green
  • Yellow

10. When cloning a forked repository, what does the origin refer to?

  • The original repository
  • The forked repository
  • The local repository

Leave a Reply